Kimi k2.6
kimi-k2.6Multimodal Kimi workhorse for agent loops, coding tasks, and visual context with a 262K-token window. It supports tool calling, vision input, and cached-input billing. Call it through the chat completions endpoint with a messages array. A balanced choice for production agents that mix text and screenshots.
Auto route pricing
Route source: Moonshot
- Input / Output
- Input: $0.762Output: $3.166
- Cache read / write
- Cache read: $0.121Cache write: Price not supplied
- Context / Max output
- 262.14K / —
- Live routes
- 2
Rates / 1M tokens
Image output: Price not supplied
These are separate usage rates, not a total request price.
On this page
Overview
Multimodal Kimi workhorse for agent loops, coding tasks, and visual context with a 262K-token window. It supports tool calling, vision input, and cached-input billing. Call it through the chat completions endpoint with a messages array. A balanced choice for production agents that mix text and screenshots.
Playground
Other parameters (15)
Result preview
Moonshot · 0ms
Response example. Run to see the actual response.
{
"id": "cc0e9f7a7bbe0ead34787584381dd1d4",
"model": "kimi-k2.5",
"usage": {
"total_tokens": 102,
"prompt_tokens": 8,
"completion_tokens": 94,
"prompt_tokens_details": {
"cached_tokens": 8
},
"completion_tokens_details": {
"reasoning_tokens": 83
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?",
"reasoning_content": "The user said \"hello\". This is a simple greeting. I should respond in a friendly, helpful manner. Since there's no specific question or task yet, I'll keep it open-ended to invite further conversation.\n\nI should:\n1. Greet them back\n2. Ask how I can help them today\n3. Keep it concise and warm\n\nNo complex reasoning needed here - just a standard polite greeting response."
},
"finish_reason": "stop"
}
],
"created": 1793805552,
"openmodels_cost": 277
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $0.017 / 1M tokens Output $0.085 Cache read $0.002 Cache write — | 757ms | — | Community | |
Live | Input $0.762 / 1M tokens Output $3.166 Cache read $0.121 Cache write — | 0ms | — | Verified |
- Input
- $0.762
- Output
- $3.166
- Cache read
- $0.121
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/chat/completions- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
messages | array | — | Yes | The conversation messages |
model | string | — | Yes | The model to use |
frequency_penalty | number · -2 ~ 2 | 0 | No | Penalty for repeated tokens |
max_completion_tokens | integer · >= 1 | — | No | Maximum visible completion tokens |
max_tokens | integer · >= 1 | — | No | Maximum completion tokens |
n | integer · 1 ~ 128 | 1 | No | Number of choices to generate |
presence_penalty | number · -2 ~ 2 | 0 | No | Penalty for previously used tokens |
response_format | object | — | No | Format constraint for the response |
route | object | — | No | OpenAny route configuration, including provider and other routing parameters |
route_mode | string | — | No | The mode for routing the request |
seed | integer | — | No | Seed for deterministic sampling |
stop | string | array | — | No | Sequences that stop generation |
stream | boolean | false | No | Whether to stream the response |
stream_options | object | — | No | Streaming options, such as include_usage. |
temperature | number · 0 ~ 2 | 1 | No | Sampling temperature |
thinking | object | — | No | Kimi thinking configuration. K2.6 supports enabled or disabled; K2.7 Code only supports enabled. |
tool_choice | string | object · none | auto | required | — | No | Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool |
tools | array | — | No | Tools available to the model |
top_p | number · 0 ~ 1 | 1 | No | Nucleus sampling probability |
Request example
curl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"content": "hello",
"role": "user"
}
],
"model": "kimi-k2.6",
"frequency_penalty": 0,
"n": 1,
"presence_penalty": 0,
"stream": false,
"temperature": 1,
"top_p": 1
}'Response example
Configured response example · not a live result
{
"id": "cc0e9f7a7bbe0ead34787584381dd1d4",
"model": "kimi-k2.5",
"usage": {
"total_tokens": 102,
"prompt_tokens": 8,
"completion_tokens": 94,
"prompt_tokens_details": {
"cached_tokens": 8
},
"completion_tokens_details": {
"reasoning_tokens": 83
}
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?",
"reasoning_content": "The user said \"hello\". This is a simple greeting. I should respond in a friendly, helpful manner. Since there's no specific question or task yet, I'll keep it open-ended to invite further conversation.\n\nI should:\n1. Greet them back\n2. Ask how I can help them today\n3. Keep it concise and warm\n\nNo complex reasoning needed here - just a standard polite greeting response."
},
"finish_reason": "stop"
}
],
"created": 1793805552,
"openmodels_cost": 277
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"model",
"messages"
],
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 128,
"minimum": 1,
"description": "Number of choices to generate"
},
"seed": {
"type": "integer",
"description": "Seed for deterministic sampling"
},
"stop": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "Sequences that stop generation"
},
"model": {
"type": "string",
"description": "The model to use"
},
"route": {
"type": "object",
"description": "OpenAny route configuration, including provider and other routing parameters"
},
"tools": {
"type": "array",
"items": {
"type": "object"
},
"description": "Tools available to the model"
},
"top_p": {
"type": "number",
"default": 1,
"maximum": 1,
"minimum": 0,
"description": "Nucleus sampling probability"
},
"stream": {
"type": "boolean",
"default": false,
"description": "Whether to stream the response"
},
"messages": {
"type": "array",
"items": {
"type": "object"
},
"description": "The conversation messages"
},
"thinking": {
"type": "object",
"description": "Kimi thinking configuration. K2.6 supports enabled or disabled; K2.7 Code only supports enabled."
},
"max_tokens": {
"type": "integer",
"minimum": 1,
"description": "Maximum completion tokens"
},
"route_mode": {
"type": "string",
"description": "The mode for routing the request"
},
"temperature": {
"type": "number",
"default": 1,
"maximum": 2,
"minimum": 0,
"description": "Sampling temperature"
},
"tool_choice": {
"enum": [
"none",
"auto",
"required"
],
"type": [
"string",
"object"
],
"description": "Tool selection policy: string modes none, auto, or required, or an object selecting a specific tool"
},
"stream_options": {
"type": "object",
"description": "Streaming options, such as include_usage."
},
"response_format": {
"type": "object",
"description": "Format constraint for the response"
},
"presence_penalty": {
"type": "number",
"default": 0,
"maximum": 2,
"minimum": -2,
"description": "Penalty for previously used tokens"
},
"frequency_penalty": {
"type": "number",
"default": 0,
"maximum": 2,
"minimum": -2,
"description": "Penalty for repeated tokens"
},
"max_completion_tokens": {
"type": "integer",
"minimum": 1,
"description": "Maximum visible completion tokens"
}
}
}Examples
Request example
POST /v1/chat/completionscurl 'https://api.openany.si/v1/chat/completions' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{
"content": "hello",
"role": "user"
}
],
"model": "kimi-k2.6",
"frequency_penalty": 0,
"n": 1,
"presence_penalty": 0,
"stream": false,
"temperature": 1,
"top_p": 1
}'