Tutorials

Batch AI jobs on Eco mode: what 3,000 credits buy

TchaviBy Gael, Tchavi founder

Published · Updated · 10 min read

Back to blog

Table of contents

A background job is work nobody watches on a screen: summarising a folder of documents overnight, classifying support tickets every hour, letting an agent finish a scheduled task. Tchavi's Eco mode suits that work: it bills half the list price, in exchange for a slower answer and a possible refusal at busy times, which your code absorbs by retrying. Here are three cases, the code, and a budget for 3,000 credits, with the assumptions you need to redo it.

In short

  • 3,000 credits is the unit of this article: what a 1,000 CFA franc top-up buys. Elsewhere, a mobile money top-up in your own currency is converted at the day's rate, so count in credits. For summarising documents (3,000 tokens read, 300 written), that is about 2,400 summaries on DeepSeek V4.1 Flash on normal (10% discount included, until 31 December 2026), and about 4,300 on Eco, without counting reasoning.
  • On GPT-5.4 Mini, about 370 on normal and about 750 on Eco: double, since Eco bills half the list price.
  • The code adds :eco to the model, retries on the 429 eco_mode_saturated error, which is never charged, then falls back to the normal price.
  • A dedicated key with a spend limit stops a batch from overrunning.

What 3,000 credits buy, on normal and on Eco

A token is a small piece of text, a short word or part of a word: a model is paid by the token, one rate for what it reads, another for what it writes. The assumptions first, so you can redo the arithmetic with your own figures:

  • Summarising a document: 3,000 tokens read, 300 tokens written.
  • Classifying a ticket: 400 tokens read (the instructions and the ticket), 20 tokens written (the category).
  • Prices on 2 December 2026, with no reasoning tokens and no cache.

The rates, in credits per 1,000 tokens read and per 1,000 tokens written:

  • DeepSeek V4.1 Flash: list price 0.33 and 1.317. On normal, 0.9 times that, thanks to a 10% discount that runs until 31 December 2026. On Eco, 0.5 times.
  • GPT-5.4 Mini: list price 1.65 and 10, no discount. On Eco, 0.5 times.

The arithmetic: credits per task = (tokens read × input rate + tokens written × output rate) ÷ 1,000, rounded up to the nearest thousandth. Then tasks per 3,000 credits = 3,000 ÷ credits per task.

TaskModelCredits per task, normalCredits per task, EcoPer 3,000 credits, normalPer 3,000 credits, Eco
Summarise a documentDeepSeek V4.1 Flash1.2470.693about 2,400about 4,300
Summarise a documentGPT-5.4 Mini7.953.975about 370about 750
Classify a ticketDeepSeek V4.1 Flash0.1430.080about 20,900about 37,500
Classify a ticketGPT-5.4 Mini0.860.43about 3,400about 6,900

Task counts are rounded down: to the ten below 1,000, to the hundred above. For example, 3,000 ÷ 1.247 = 2,405 summaries, rounded to about 2,400; 3,000 ÷ 0.693 = 4,329, rounded to about 4,300. The "normal" columns for DeepSeek V4.1 Flash include its 10% discount, which runs until 31 December 2026; the Eco columns do not depend on it.

On GPT-5.4 Mini, which has no discount, Eco gives double the tasks. On DeepSeek V4.1 Flash, about 1.8 times as many, because Eco replaces its 10% discount instead of adding to it. If that discount ends on 31 December as planned, the normal price goes back to the list price, and Eco gives double again.

Outside the CFA franc zone, a mobile money top-up is converted at the day's rate, with a 2% exchange margin. For example, the billing estimate for KES 250 gave 3,420 credits on 5 December 2026: check the amount at checkout.

Two limits to this table. DeepSeek V4.1 Flash thinks by default, and those reasoning tokens, billed as output, are not in it: read the usage field of your first responses, or the X-Credits-Used header, before you fix your budget. And the table says nothing about quality: which model gets your task right is what our cost versus quality method tells you.

Case 1: summarise a folder of documents overnight

A thousand documents to summarise by tomorrow morning: nobody waits on each answer, only the batch has to be done. On DeepSeek V4.1 Flash, the batch costs 1,247 credits on normal, 10% discount included, and 693 credits on Eco. On GPT-5.4 Mini, 7,950 credits and 3,975 credits.

This Python script, with the OpenAI SDK, summarises every text file in the documents folder on Eco, and writes the summaries to summaries:

import pathlib
import time
from openai import OpenAI, RateLimitError

client = OpenAI(
    api_key="YOUR_API_KEY",  # a key kept for this batch, with a spend limit
    base_url="https://tchavi.com/api/v1",
    max_retries=0,  # we handle retries ourselves
)

MODEL = "deepseek-v4.1-flash"
INSTRUCTIONS = "Summarise this document in five lines, in English."


def call(model, instructions, text):
    raw = client.chat.completions.with_raw_response.create(
        model=model,
        messages=[
            {"role": "system", "content": instructions},
            {"role": "user", "content": text},
        ],
        max_tokens=1000,  # room for reasoning; the unused hold is given back
    )
    answer = raw.parse().choices[0].message.content
    return answer, float(raw.headers.get("x-credits-used", 0))


def on_eco(instructions, text):
    for wait in (60, 300, 900):  # Eco saturated: wait 1, 5, then 15 minutes
        try:
            return call(f"{MODEL}:eco", instructions, text)
        except RateLimitError as e:
            if e.response.json().get("error") != "eco_mode_saturated":
                raise
            time.sleep(wait)
    return call(MODEL, instructions, text)  # still saturated: normal price


out = pathlib.Path("summaries")
out.mkdir(exist_ok=True)
total = 0.0
for doc in sorted(pathlib.Path("documents").glob("*.txt")):
    target = out / doc.name
    if target.exists():
        continue  # already summarised on an earlier run
    summary, credits = on_eco(INSTRUCTIONS, doc.read_text(encoding="utf-8"))
    target.write_text(summary, encoding="utf-8")
    total += credits
print(f"Credits charged: {total:.3f}")

What the script does:

  • It tries each document on Eco. If Eco is saturated, it waits 1, 5, then 15 minutes, and moves to the normal price for that document only.
  • It adds up the X-Credits-Used header of each response: you know what the batch cost, without recalculating anything.
  • It stops dead if the key reaches its spend limit (403 key_spend_limit_reached). Run it again after raising the limit: it skips the documents already summarised.

For the limit, create a key kept for this batch in the dashboard and aim a little above the worst case. Here, the worst case is a batch that falls back entirely to the normal price: 1,247 credits on DeepSeek V4.1 Flash, 10% discount included (1,386 at list price), without reasoning. A limit of 1,500 credits lets it through with a margin, and stops a loop that runs away. Each request holds its estimated cost at the start, maximum output included, so a key can stop a little before its cap. The details are in API keys with a spend limit and an expiry date.

Case 2: classify support tickets

If your support team can sort tickets every hour rather than every second, classification can move to Eco. Reuse the script's on_eco function, with other instructions:

TICKET_INSTRUCTIONS = (
    "Put this support ticket in exactly one category: "
    "payment, account, bug or other. Answer with the category only."
)

category, credits = on_eco(TICKET_INSTRUCTIONS, ticket_text)

For 10,000 tickets of 400 tokens read and 20 written: 1,430 credits on normal on DeepSeek V4.1 Flash, 10% discount included, 800 credits on Eco. On GPT-5.4 Mini, 8,600 credits and 4,300 credits.

A customer waiting for an answer in a chat does not belong in this batch: answer them on normal.

Case 3: a coding agent's background tasks

Hermes Agent, the open source agent from Nous Research, accepts any OpenAI-compatible endpoint. So the :eco suffix goes in the model name, with a fallback entry pointing at the id without :eco, in ~/.hermes/config.yaml:

model:
  default: 'deepseek-v4.1-flash:eco'
  provider: custom
  base_url: 'https://tchavi.com/api/v1'
  key_env: TCHAVI_API_KEY

fallback_providers:
  - provider: custom
    model: deepseek-v4.1-flash
    base_url: 'https://tchavi.com/api/v1'
    key_env: TCHAVI_API_KEY

Going by Hermes' code, it sends the id as it is, so deepseek-v4.1-flash:eco should work; this setup has not been tested end to end. When it gets a 429, Hermes moves to the fallback entry after its own retries, at most once per turn, and goes back to the main model on the next message. Do not put service_tier: flex in a provider's extra_body: any model without Eco mode would answer with a 400 error. The details are in the "Eco mode, for background tasks" section of the Hermes Agent guide.

Keep this setup for background or scheduled tasks. For a session where you read the answers as they come, go back to the id without :eco.

For 200 agent calls of 20,000 tokens read and 1,500 written each: 1,543.6 credits on normal on DeepSeek V4.1 Flash, 10% discount included, 857.6 credits on Eco. On GPT-5.4 Mini, 9,600 credits and 4,800 credits. An agent sends the same context again on every turn, and prompt caching can bill a good part of that context at the much lower cache-read rate. These figures leave it out: how caching combines with Eco mode is not documented.

Before you start a batch

  • Slow, and that is fine here. On our test requests of 30 November 2026, GPT-5.4 Mini took 8.8 s on Eco against 2.9 s on normal: one measurement, on a tiny question, so an order of magnitude. An overnight batch has the time; a waiting customer does not.
  • A refusal costs nothing. The 429 eco_mode_saturated is not charged, and Tchavi never sends the request again at the normal price on its own: your code decides when to move to normal.
  • Your maximum budget is the "normal" column. If Eco stays saturated all night, your fallback pays the normal price: set your spend limit for that case.
  • The exact price is in X-Credits-Used. Add it up, as the script does, rather than recalculating it.
  • DeepSeek V4.1 Flash's discount ends on 31 December 2026. Redo the table in January.

To understand Eco mode in detail, read Flex mode (Eco): half-price AI API calls. For the other levers, see Cut your AI API cost: 6 levers, each with a number.

FAQ

How many documents can I summarise with 3,000 credits on Eco mode?

About 4,300 on DeepSeek V4.1 Flash and about 750 on GPT-5.4 Mini, for 3,000-token documents and 300-token summaries, without counting reasoning, at 2 December 2026 prices.

What happens if Eco mode stays saturated all night?

With the script above, each document moves to the normal price after three attempts. The batch finishes, and at worst it costs the price in the "normal" column.

Does Eco mode change the quality of the summaries?

On DeepSeek V4.1 Flash, on 28 November 2026 we compared the capacity that serves Eco with the normal capacity, on five tasks run twice each, with reasoning_effort set to low: a calculation, a JSON output, code, a tool call and a message to write. Both passed all 8 automatic checks, and the answers we read by hand were nearly identical. Twenty calls in one evening do not measure reliability: read a sample of your own summaries.

Should I put all of Hermes Agent on Eco mode?

No. Only background or scheduled tasks, with a fallback entry pointing at the id without :eco. For a session where you wait for the answers, stay on normal.

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.

Share

Your first API call, paid with mobile money

No bank card. Top up with mobile money in your local currency; your first top-up adds 150 bonus credits, and credits never expire.