We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
google/gemini-3.8-flashThe value pick for multimodal apps
Gemini 3.8 Flash gives you a 1M context, vision, documents and tools at 1.741 credits per 1K input — half the 3.482 Gemini 3.5 Flash charges — for a newer generation. A strong default for apps that mix text, images and PDFs.
Last updated Nov 23, 2026
A million tokens of context in a single request
8.44 credits per 1K output tokens instead of 21.1, for a newer model
Reads images and documents alongside your text
Structured output and function calling, natively supported
Token-by-token SSE streaming
Enough headroom for long summaries and generated files
Extract every date, amount and counterparty from this contract text and return them as JSON.
Read this screenshot of a dashboard and tell me which metric moved most and what likely caused it.
Classify these 50 support messages by intent and urgency, returning a JSON array.
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.8-flash',
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.8-flash`).
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.