XENA AI API — PRICE SHEET 1 credit = $0.0001 (10000 credits = $1) Billing: price = prompt_tokens x input rate + completion_tokens x output rate, in USD per 1M tokens. Rates are set per model on the price list below. There are no bands and no size tiers. PRICES PER 1M TOKENS (USD) — plus one typical turn (600 in / 300 out) for scale model input output typical turn xael3-turbo $0.17 $0.50 $0.000252 xael3-think $0.20 $0.75 $0.000345 xael3-thinkXL $0.30 $0.80 $0.000420 yoshi2-coder $0.20 $0.75 $0.000345 yoshi2-coder-plus $0.50 $1.00 $0.000600 yoshi2-coder-max $0.75 $1.75 $0.000975 xael3-embed $0.02 $0.00 $0.000100 xena $0.15 $0.30 $0.000180 xena-pro $0.25 $0.50 $0.000300 PER-UNIT PRICES (USD) — charged per unit produced, never by token, no bands model price zora-turbo $0.0300 per image zora $0.0400 per image zora-plus $0.0800 per image zora-vectors $0.0500 per image zora-concepts $0.1000 per image yoshi2-voice $0.0300 per minute Minimum charge per request: $0.0001 (1 credit). CACHE (two different caches, two different prices) YOUR SEMANTIC CACHE POOL: a question already in your own pool is served without calling the provider at all, and bills at 5% of the normal price (a 95% discount). An exact repeat always hits; a re-worded version of the same question hits when our local decider model confirms it is the same question. EVERY model uses this pool, coding models included. NOT CACHED: multi-turn conversations, tools/RAG/attachments, a system prompt supplied outside the messages, personal or time-sensitive wording, a prompt that IS a block of code — and, for every model, an ANSWER that contains code is never stored, and an entry that already contains code is deleted rather than served. The web chat and the API keep separate pools. Two hits in ten are regenerated so a repeated question stays current; those bill normally. PROVIDER PREFIX CACHE — EVERY MODEL, PER TOKEN: the cached part of the prompt bills at 10% of a fresh token: price = normal x (fresh_prompt + cached_prompt x 0.10 + completion) / (prompt + completion) The discount is per TOKEN, not per request: every cached token is charged at 10%, every fresh one at full price, so a prompt that is 3% cached pays 3% of the discount and a prompt that is 97% cached pays 97% of it. No cached tokens reported means no discount. Verified reporting hits: yoshi2-coder, yoshi2-coder-max, xael3-think, xael3-thinkXL, xena, xena-pro. AGENT LOOPS (tool calls) One thing you ask for is one charge. The first request of a turn bills the full price; every continuation — a call whose history already carries assistant tool_calls or a tool result — bills at 10% of it, because it re-sends context the provider has already cached. The two discounts never multiply: when the provider reports cached tokens, the higher of the two wins. So a 20-step coding agent costs about 6 requests, not 20. Send agent_continuation:true to mark one. RETIRED: THE BAND LADDER Until 2026-10-27 a request was priced by the SIZE OF THE REQUEST — a ladder of token bands, each charging a multiple of the model's base rate, with a size floor on top. That is gone. It is not a discount you can still earn, and it is not a charge you can still incur: the price of a request is the per-token sum printed above, and nothing else. The ladder survives only in GET /v1/pricing, labelled deprecated, so old integrations can be read. Per-unit rows (images, voice) were never part of it — they bill per unit produced. WEEKLY ALLOWANCE 1000 free credits every week ($0.10); 2500 ($0.25) once the account holds at least 1000 credits ($0.10) of paid balance. Spent before any paid balance. It works with or without a balance — buying credit does NOT cancel it, it raises it — and it does NOT stack: unused credits expire at the end of the week (Monday 00:00 UTC) and the next week starts from the full amount. The tier is fixed when the week opens, so spending the balance down mid-week does not shrink an allowance already granted. ROUTER wally picks a model and bills as that model less 25%. It is never dearer than picking directly. MACHINE FORMATS GET /v1/models JSON: ids, context windows, per-1M-token rates GET /v1/pricing JSON: the rates, the cache and continuation discounts — plus the RETIRED band ladder, published there as deprecated and charged by nothing GET /pricing.txt this file