We use cookies to enhance your experience, provide personalised content, and analyse our traffic; see our Cookie Policy.
alibaba/qwen-2.5-coder-32bA model that only writes code
Qwen 2.5 Coder 32B is specialised for programming and does little else. At 1.45 credits per 1K input with a 32K context, it suits an editor integration or a code-completion service rather than a general assistant.
Last updated Nov 23, 2026
Trained on code, not adapted to it
Answers directly — 7 output tokens on a one-line question
The cheapest code generation we sell
This function throws on empty input. Fix it and add the unit tests that would have caught it.
Explain what this regular expression matches, then rewrite it so a human can read it.
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: 'qwen-2.5-coder-32b',
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. `qwen-2.5-coder-32b`).
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.
Estimated over 30 days, for a typical message: ~500 input + ~150 output tokens, billed to the thousandth of a credit.