chat
Mimo 2.6 Flash
Xiaomi LLM, using the OpenAI chat format. Price $0.00021 / 0.00042 per 1K tokens. Prices in US dollars.
Try it in the PlaygroundOpenAI formatchat
xiaomi/mimo-v2.6-flash
Quick start
The endpoint is OpenAI's chat endpoint: in the SDK you already use, just change the base URL and the key. The example sends a single question.
curl https://api.wizzyflow.ai/v1/chat/completions \
-H "Authorization: Bearer $WIZZYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xiaomi/mimo-v2.6-flash",
"messages": [
{
"role": "user",
"content": "A slogan for a neighborhood bakery"
}
]
}'The response:
{
"id": "chatcmpl-…",
"object": "chat.completion",
"model": "xiaomi/mimo-v2.6-flash",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "Fresh bread, right around the corner." },
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 9,
"price": 0.0002,
"currency": "USD"
}
}Streaming
With "stream": true, the answer arrives in chunks (server-sent events), each on a data:line, and ends with data: [DONE]. To get the price, ask for "stream_options": { "include_usage": true }: the last chunk carries the tokens and the amount charged.
data: {"choices":[{"index":0,"delta":{"role":"assistant","content":"Fresh"}}]}
data: {"choices":[{"index":0,"delta":{"content":" bread, right around the corner."}}]}
data: {"choices":[],"usage":{"prompt_tokens":18,"completion_tokens":9,"price":0.0002,"currency":"USD"}}
data: [DONE]If the connection drops midway, you're only charged for what was already generated.
Authentication
Send the key in the Authorization: Bearer $WIZZYFLOW_API_KEY header. It's the same key as the image, video and audio models. Keep the key in an environment variable, on the server; never in browser code.
Input
Parameters go in the body, as JSON. Only model and messages are required; any others you don't send keep the model's default.
| Name | Type | What it is |
|---|---|---|
model | string | The model ID. |
messages | array | The conversation, in order: objects with role (system, user or assistant) and content. |
max_tokens | integer | Max response length, in tokens. The balance hold is based on it; only what's used is charged. |
stream | boolean | true to receive the answer in chunks, as it's generated. |
stream_options | object | { "include_usage": true } to receive the tokens and price in the last chunk. |
temperature | number | 0 to 2. Higher gives more varied answers; lower, more predictable ones. |
top_p | number | 0 to 1. Limits the candidate words to the most likely ones. |
top_k | integer | Only considers the k most likely words at each step. |
frequency_penalty | number | Discourages repeating the same words. |
presence_penalty | number | Encourages new topics. |
stop | string or array | Stops generating when it hits one of these strings. |
seed | integer | Seed for more reproducible answers. |
response_format | object | { "type": "json_object" } or a JSON Schema, to get the answer as JSON. |
tools | array | Functions the model can ask to call, in the OpenAI format. |
tool_choice | string or object | auto, none, required or a specific function. |
reasoning | object | { "effort": "low" | "medium" | "high" } for the model to think before answering. |
logprobs | boolean | Returns the probability of each generated token. |
Output
The response follows the OpenAI format, with the amount charged inside usage.
| Field | Type | What it is |
|---|---|---|
id | string | The response ID. |
model | string | The model that answered. |
choices[0].message.content | string | The answer. |
choices[0].message.reasoning | string | The reasoning, when the model thinks and returns what it thought. |
choices[0].message.tool_calls | array | The functions the model asked to call, when there are tools. |
choices[0].finish_reason | string | stop (finished), length (hit max_tokens) or tool_calls. |
usage.prompt_tokens | integer | Input tokens. |
usage.completion_tokens | integer | Output tokens. |
usage.price | number | The amount charged for this call, in your account's currency. |
usage.currency | string | BRL or USD: your account's currency. |
Pricing
Charged per token, for each call's input and output. Before answering, we hold the most it could cost (the input and max_tokens); at the end, we charge only what was used and return the rest.
- Input
- $0.00021
- Cached input
- $0.00000
- Output
- $0.00042
per 1K tokens
1,050,000 token context; answers up to 131,072 tokens.
Prices in US dollars.