To use AI models for less, start with the model: pick the smallest one that does your task well. On the same ticket-sorting job, GPT-5.4 Mini costs nearly eight times as much as GPT-6 Luna at per-token prices. Then come Eco mode for work that can wait, the reasoning setting, prompt caching, a limit on answer length, and a spend cap on every key. Each lever below carries a number worked out from Tchavi's prices on 2 December 2026, and says what it does not do.
Three words before we start
- Token: a small piece of text, a short word or part of a word. Models read and write in tokens, and you pay by the token: one rate for the input (what the model reads), another for the output (what it writes), in credits per 1,000 tokens.
- Reasoning: some models write out their thinking before they answer. Those reasoning tokens are billed as output, even when you never read them.
max_tokens: the largest number of tokens the model is allowed to write in its answer.
In short
| Lever | What it changes | One number, 2 December 2026 |
|---|---|---|
| The smallest model that clears your bar | the price of every token | 10,000 tickets classified: 1,100 credits on GPT-6 Luna, 8,600 on GPT-5.4 Mini, without reasoning |
| Eco mode | half the list price, slower | 50% less on GPT-5.4 Mini, 44.4% on DeepSeek V4.1 Flash until 31 December |
| Reasoning | the thinking tokens | Kimi K3.1 Pro: 60 credits with reasoning, 8.8 without, on two runs that are not like for like |
| Prompt caching | the price of repeated input | an agent turn of 120,000 tokens, 110,000 of them already seen: 213 credits without the cache, 49.65 with it (GPT-5.4 Mini) |
Short answers and max_tokens | the output, and the hold | 24.95 credits for a 2,000-token answer, 7.95 for a 300-token one (GPT-5.4 Mini) |
| A spend limit per key | the worst case | the key stops at its cap, with a 403 error |
1. Pick the smallest model that clears your bar
Your bar is the success level you require, set before you run any test. The model that clears it at the lowest price per task is the one you want, even if a bigger one does better.
To classify 10,000 support tickets, with 400 tokens read and 20 written per ticket, at per-token prices on 2 December 2026:
| Model | Credits |
|---|---|
| GPT-6 Luna | 1,100 |
| DeepSeek V4.1 Flash | 1,430 |
| GPT-5.4 Mini | 8,600 |
DeepSeek V4.1 Flash's price includes its 10% discount, which runs until 31 December 2026. These totals leave reasoning out, and they do not tell you whether the model gets your task right. A model that reasons a lot can cost more per task than a model with a higher rate. The way to decide, with 15 scored cases and a bar set in advance, is in our cost versus quality method. For a bot, another route: a small model answers and a stronger one takes the hard cases, as in the support bot with escalation.
2. Move work that can wait to Eco mode
Eco mode bills a request at half the model's list price. You turn it on by adding :eco to the model id (deepseek-v4.1-flash:eco) or "service_tier": "flex" to the request. In exchange, the answer is slower, and at busy times the request can be refused with a 429 eco_mode_saturated error, which is not charged and is never sent again at the normal price without you.
For 1 million tokens read and 200,000 written:
- GPT-5.4 Mini: 3,650 credits on normal, 1,825 on Eco.
- DeepSeek V4.1 Flash: 534.06 credits on normal, 296.7 on Eco.
Eco replaces a launch discount instead of adding to it. On DeepSeek V4.1 Flash, discounted by 10% until 31 December 2026, Eco therefore saves 44.4% of today's price, not 50%. On GPT-5.4, discounted by 20%, it is 37.5%.
Keep Eco for work nobody is waiting on: a batch of documents, sorting tickets, a scheduled task. Not for a live chat. The details are in Flex mode (Eco): half-price AI API calls, and budgets for background work in Batch AI jobs on Eco mode: what 3,000 credits buy.
3. Control reasoning
A model that reasons can write thousands of thinking tokens before its answer, and you pay for all of them as output. The reasoning_effort parameter sets how much it thinks, on the models that accept it. The accepted values change from one model to the next: check the API tab of the model page before you rely on one.
An example from our article on Kimi K3.1 Pro, in October 2026. With no setting, Kimi K3.1 Pro reasons at maximum effort. Asked in English to work out the margin of a cashew cooperative in Bohicon, Benin, "it produced 2,411 reasoning tokens before a correct answer, in 38 seconds: 60 credits". "The same question in French hit the 3,000-token limit without answering." Then, with reasoning_effort: "none", "the French question came back correct in 6 seconds, with no reasoning: 8.8 credits".
Read those numbers with their limits. The two runs are not like for like: the 60-credit run is the English question, the 8.8-credit run the French one, whose version with reasoning never answered. It is one run of each, on one model: do not draw a rule for other models from it. And check that the answer without reasoning still clears your bar.
Two more points on Kimi K3.1 Pro. The levels in between (minimal, low, medium, high) are refused with a free 400 error. And on Eco mode, reasoning_effort: "none" is refused: on this model, the two savings do not stack.
4. Let the cache cut repeated input
An agent or a chat sends the same conversation again on every turn. The provider keeps the repeated start of the prompt in a cache, and reading it back costs far less than reading it fresh. Tchavi applies the model's cache-read rate, often a tenth of the input rate.
At list prices on 2 December 2026, per 1,000 tokens:
- GPT-5.4 Mini: 1.65 credits read fresh, 0.165 from the cache.
- GPT-6 Luna: 0.22 fresh, 0.022 from the cache.
- DeepSeek V4.1 Flash: 0.33 fresh, 0.014 from the cache.
An agent turn on GPT-5.4 Mini that reads 120,000 tokens, 110,000 of them already sent on the previous turn, and writes 1,500 tokens costs 213 credits without the cache and 49.65 credits when those 110,000 tokens come from the cache: 76.7% less.
What to know:
- On OpenAI models, it is automatic above roughly a thousand tokens. Nothing to change in your code.
- On Claude models, the client has to mark the prompt as cacheable. Claude Code does it by default. Only the 5-minute cache is available.
- Only models whose cache pricing has been verified get the cache rate. Elsewhere, cached input is billed at the ordinary input rate.
- Put what does not change at the start of the prompt (instructions, examples, reference documents), and what changes at the end: it is the repeated start that gets cached.
Do not count on caching and Eco mode stacking: it is not documented. The details are on the credits page.
5. Ask for short answers, and cap max_tokens
Output often costs far more than input: on GPT-5.4 Mini, 10 credits per 1,000 tokens written against 1.65 per 1,000 tokens read, a little over six times as much. On the same 3,000-token document, a 2,000-token answer costs 24.95 credits, a 300-token answer 7.95 credits.
Ask for the length you want in the prompt ("in five lines"), and keep max_tokens as a guardrail. A cap cuts the answer wherever it falls; it does not shorten it neatly, so it only helps when a short answer suits you.
max_tokens also sets the hold. Before each request, Tchavi holds credits for your input plus the output max_tokens allows, bounded by what the model can produce, then gives the rest back at the end. A huge max_tokens does not make a short answer cost more, but it ties up credits during the request: an account that cannot cover the hold gets a 402 error naming the amount, and a capped key stops sooner.
Watch out with models that reason: their reasoning tokens can count toward that limit. Kimi K3.1 Pro, which reasons at maximum effort by default, hit the 3,000-token limit without answering. On those models, a cap set too low can cut the answer off before it even starts. The calculation is on the credits page.
6. Put a spend limit on every key
A spend limit does not lower the price of a call. It caps what a runaway loop, a badly tuned batch or a leaked key can spend.
Every Tchavi API key can carry a limit in credits, over its whole lifetime. Each request holds its estimated cost at the start; when that hold no longer fits in what is left, the request gets a 403 key_spend_limit_reached error. You can raise or remove the limit at any time. A streaming request (an answer shown as it is written) can leave the key slightly above its limit, if its final cost is higher than what was held.
The key can also expire: after 1 hour, 1 day, 3 days, 7 days, 1 month, on a date you choose, or never. After that, its requests get a 403 key_inactive error.
A good habit: one dedicated, capped key for each batch, each scheduled job or each tool. You see what each one spends, and none of them can empty your balance. How it works is in API keys with a spend limit and an expiry date and on the authentication page.
What stacks, and what does not
- A small model and Eco mode: yes, if the model offers Eco. GPT-6 Luna, DeepSeek V4.1 Flash and GPT-5.4 Mini do.
- Eco mode and a launch discount: no. Eco replaces the discount.
- Eco mode and
reasoning_effort: "none"on Kimi K3.1 Pro: no, the request is refused. - Eco mode and caching: not documented. Do not count on it.
- A spend limit: with everything else.
FAQ
Which lever cuts the bill the most?
In our examples, the choice of model: a gap of nearly eight times between GPT-6 Luna and GPT-5.4 Mini on sorting tickets, at per-token prices. Eco mode then halves the list price, at most.
Do Eco mode and a discount stack?
No. Eco costs half the list price and replaces the discount: on a discounted model, it saves less than half of today's price.
Is switching reasoning off always a good idea?
No. The accepted reasoning_effort values depend on the model, and an answer without reasoning may no longer clear your bar on a hard problem. On Kimi K3.1 Pro, "none" gave a correct answer for 8.8 credits in October 2026, on a single run.
Does a low max_tokens lower the price?
Not for an answer that was already short. It cuts long answers off, and it reduces the credits held during the request.
Is a refused request charged?
No. A request refused by a spend limit, by a 400 error or by a saturated Eco mode is not served, and nothing is taken from your balance.
create your account and top up KES 250
This article is part of the series "Building an AI product from Africa". Tchavi is an OpenAI-compatible AI API gateway: one key gives access to over 100 text, image, audio and video models, and you pay for it with mobile money, no bank card (countries and operators). More guides on the blog. Follow us: LinkedIn and X.