We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
google/gemini-3.1-flash-liteGemini 3.1 Flash-Lite — a 1M context at 0.6 credits
Gemini 3.1 Flash-Lite pairs a million-token context with vision, documents and tools for 0.581 credits per 1K input. It reads scanned pages and PDFs, which makes it a natural fit for paperwork at volume.
Last updated Nov 23, 2026
0.581 credits per 1K input tokens, 3.482 per 1K output
The full context window, at the entry price
Still reads images and documents, not text only
Structured output and function calling for pipelines
Built for high call volumes and tight latency budgets
Cheap enough to run over a whole backlog
Tag each of these 200 product reviews with a sentiment and the single feature it talks about most.
Read this scanned receipt and return the merchant, date, total and currency as JSON.
Decide which of these emails need a human reply and which can be auto-acknowledged.
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: 'gemini-3.1-flash-lite',
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. `gemini-3.1-flash-lite`).
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_tokensOpenAI alias 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.
Estimated over 30 days, for a typical message: ~500 input + ~150 output tokens, billed to the thousandth of a credit.