openai/gpt-4o-miniRetiring — Retires on 14 January 2027.
Cheap, familiar, text only
GPT-4o mini remains one of the cheapest ways to run a chatbot at 0.33 credits per 1K input, over a 128K context. GPT-5 mini gives you a far larger context and stronger answers, so treat 4o mini as the compatible option rather than the best one.
Offer ends December 31, 2027
Context 128K · Max output 16.4K
Prompt cache read: 0.165 cr / 1,000 tokens
In your currency, for 1 million input tokens: ≈ $0.16 (rate of Dec 1, 2026, operator fees not included).
93 F CFA · 362 CDF · 1.85 GHS · 20 KES · 271 MWK · 9.91 MZN · 232 RWF · 3.56 SLE · 414 TZS · 644 UGX · 3.25 ZMW
Last updated Nov 30, 2026
GPT-4o mini remains one of the cheapest ways to run a chatbot at 0.33 credits per 1K input, over a 128K context. GPT-5 mini gives you a far larger context and stronger answers, so treat 4o mini as the compatible option rather than the best one.
Budget-friendly everyday model
Reads images and PDFs in the same request as your text
Quick responses at scale
For 1,000 words sent and 1,000 words received, expect 1.802 credits (under 1 FCFA). Usage is counted in tokens, small pieces of words (in English, 1,000 words make about 1,300 tokens), so the exact price follows the length of your messages.
GPT-4o Mini can read up to 128,000 tokens at once, about 98,000 words in English. That is its context window: how much text it keeps in mind during a conversation. A reply can run up to 16,384 tokens.
GPT-4o Mini works best for these jobs: high-volume chatbots, classifying short messages, and extracting fields from text. It also reads images and attached documents. On the technical side, it can show its reply as it is written (streaming), trigger your functions (tool calling), and answer in structured JSON (JSON mode).
If GPT-4o Mini does not fit, you could try GPT-4o, 28.6 credits (about 9.5 FCFA); GPT-4.1 Mini, 5.694 credits (about 1.9 FCFA). Prices are for 1,000 words in and 1,000 words out.
Its provider retires GPT-4o Mini on 14 January 2027. From that day, requests are refused. Plan a switch to another model before then.
Yes. Top up your Tchavi account with Orange Money, MTN MoMo, M-Pesa or another mobile money operator. No bank card is needed. Credits land as soon as the payment is confirmed and are deducted as you use them.
Yes. Keep your current OpenAI SDK, just change the base URL to Tchavi's (shown in the API tab) and use your Tchavi key. The rest of your code stays the same.
import Tchavi from '@tchavi/sdk';
const client = new Tchavi({ apiKey: 'API_KEY' });
const response = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [
{
"role": "user",
"content": "Hello!"
}
],
});
console.log(response.choices[0].message.content);
console.log('Credits used:', response.tchavi.credits_used);Every parameter this model accepts on the API. Check the SDK for full typings.
modelRequiredID of the chat model (e.g. `gpt-4o-mini`).
messagesRequiredConversation messages. Each item has a `role` (system/user/assistant) and a `content` that's either a plain string or an array of content blocks (`text`, `image_url`, `document_url`).
temperature1Sampling temperature between 0 and 2. Higher values = more random.
max_tokensMaximum number of tokens to generate in the response.
max_completion_tokensAlias for `max_tokens`. Either field works; if both are sent, `max_completion_tokens` wins.
streamfalseIf true, partial message deltas are streamed as Server-Sent Events.
toolsFunction-calling toolbox. Pass an array of `{ type: "function", function: { name, description, parameters } }`. Returned tool calls land in `choices[].message.tool_calls`. Only models with `supportsTools: true` accept this.
tool_choiceHow the model picks among tools: `"auto"` (default), `"none"` to force a plain text reply, or `{ type: "function", function: { name } }` to force a specific tool. Only with `supportsTools: true`.
response_formatConstrain the output. Pass `{ type: "json_object" }` to force valid JSON (the model still needs a JSON instruction in your prompt). Only models with `supportsJsonMode: true` honour this.
reasoning_effortReasoning depth. Values `"low"`, `"medium"`, `"high"`. Silently ignored when the model does not reason.
Estimated over 30 days, for a typical message: ~500 input + ~150 output tokens, billed to the thousandth of a credit.
We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.