# OpenRouter APIs — MoonshotAI: Kimi K3 (moonshotai/kimi-k3) Guide for calling every confirmed OpenRouter API that serves `moonshotai/kimi-k3`. Model page: https://openrouter.ai/moonshotai/kimi-k3 Create an API key: https://openrouter.ai/settings/keys ## Pricing Standard-variant prices for `moonshotai/kimi-k3`, per provider, in the unit each provider bills (tokens, images, seconds of video, or characters of audio). Pay-as-you-go with no markup on the provider's price. - Wafer: $0.153/M tokens input, $16/M tokens output (plus 1 more; see the model page for the full price list) - Relace: $0.1824/M tokens input, $10.61/M tokens output (plus 1 more; see the model page for the full price list) - Wafer: $0.192/M tokens input, $16/M tokens output (plus 1 more; see the model page for the full price list) - inference.net: $0.234/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Wafer: $0.276/M tokens input, $9.60/M tokens output (plus 1 more; see the model page for the full price list) - Sail Research: $0.345/M tokens input, $16.58/M tokens output (plus 1 more; see the model page for the full price list) - inference.net: $0.45/M tokens input, $18/M tokens output (plus 1 more; see the model page for the full price list) - Pareto Alpha: $1/M tokens input, $11.25/M tokens output (plus 1 more; see the model page for the full price list) - Makora: $1.20/M tokens input, $16/M tokens output (plus 1 more; see the model page for the full price list) - Chutes: $1.85/M tokens input, $9.50/M tokens output (plus 1 more; see the model page for the full price list) - io.net: $2.30/M tokens input, $14/M tokens output (plus 1 more; see the model page for the full price list) - DigitalOcean: $2.55/M tokens input, $12.95/M tokens output (plus 1 more; see the model page for the full price list) - DeepInfra: $2.85/M tokens input, $14.25/M tokens output (plus 1 more; see the model page for the full price list) - KT: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Amazon Bedrock: $3/M tokens input, $15/M tokens output (plus 2 more; see the model page for the full price list) - Parasail: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Modal: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Together: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Fireworks: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Baseten: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Moonshot AI: $3/M tokens input, $15/M tokens output (plus 1 more; see the model page for the full price list) - Alibaba Cloud Int.: $3.45/M tokens input, $17.25/M tokens output (plus 1 more; see the model page for the full price list) - Parasail: $4.50/M tokens input, $22.50/M tokens output (plus 1 more; see the model page for the full price list) - Fireworks: $4.50/M tokens input, $22.50/M tokens output (plus 1 more; see the model page for the full price list) Full price table, including other variants and per-request charges: https://openrouter.ai/moonshotai/kimi-k3 How OpenRouter prices requests: https://openrouter.ai/pricing ## EU in-region routing `moonshotai/kimi-k3` is not currently available through EU in-region routing. Docs: https://openrouter.ai/docs/guides/features/in-region-routing ## Authentication Send this header with every request: - Authorization: Bearer $OPENROUTER_API_KEY ## Text / Chat Completions API Generate text with `moonshotai/kimi-k3` through OpenRouter's Chat Completions API. Docs: https://openrouter.ai/docs/api/api-reference/chat/create-a-chat-completion ### Endpoint POST https://openrouter.ai/api/v1/chat/completions Headers: - Content-Type: application/json ### Request fields (moonshotai/kimi-k3) - model: string (required) — `"moonshotai/kimi-k3"` - messages: array (required) — ordered conversation messages with `role` and `content` - stream: boolean (optional) — return Server-Sent Events as tokens are generated - frequency_penalty: optional — accepted by this model; see the API reference for its value shape - logit_bias: optional — accepted by this model; see the API reference for its value shape - logprobs: optional — accepted by this model; see the API reference for its value shape - max_completion_tokens: optional — accepted by this model; see the API reference for its value shape - max_tokens: optional — accepted by this model; see the API reference for its value shape - min_p: optional — accepted by this model; see the API reference for its value shape - parallel_tool_calls: optional — accepted by this model; see the API reference for its value shape - presence_penalty: optional — accepted by this model; see the API reference for its value shape - reasoning: optional — accepted by this model; see the API reference for its value shape - reasoning_effort: optional — accepted by this model; see the API reference for its value shape - repetition_penalty: optional — accepted by this model; see the API reference for its value shape - response_format: optional — accepted by this model; see the API reference for its value shape - seed: optional — accepted by this model; see the API reference for its value shape - stop: optional — accepted by this model; see the API reference for its value shape - temperature: optional — accepted by this model; see the API reference for its value shape - tool_choice: optional — accepted by this model; see the API reference for its value shape - tools: optional — accepted by this model; see the API reference for its value shape - top_k: optional — accepted by this model; see the API reference for its value shape - top_logprobs: optional — accepted by this model; see the API reference for its value shape - top_p: optional — accepted by this model; see the API reference for its value shape The model-specific optional fields above come from this model's advertised capabilities. `stream` and `provider` routing preferences are API controls accepted independently of that model capability list. ### Response Without `stream`, the response is a Chat Completions JSON object: ```json { "id": "gen-abc123", "choices": [{ "message": { "role": "assistant", "content": "..." } }], "usage": { "prompt_tokens": 12, "completion_tokens": 24, "total_tokens": 36, "cost": 0.001 } } ``` With `stream: true`, the response is `text/event-stream`: read each `data:` JSON chunk until `data: [DONE]`. The final usage chunk carries token counts and cost when usage is requested. ### Examples #### Chat completion ```bash curl -X POST https://openrouter.ai/api/v1/chat/completions \ -H "Authorization: Bearer $OPENROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "moonshotai/kimi-k3", "messages": [ { "role": "user", "content": "What is the meaning of life?" } ] }' ``` ### Error differences - 400 — malformed messages or a parameter this model does not support - 502 — the upstream text generation failed ## Errors Failures return `{"error": {"code": , "message": }}` with the HTTP status: - 400 — malformed request or an unsupported parameter - 401 — missing or invalid API key - 402 — insufficient credits - 403 — spend limit reached, key disabled, or access blocked - 404 — unknown model or no provider can serve the request - 429 — rate limited; retry with backoff - 502 — the operation failed upstream; failed generations are not billed --- Canonical version of this document: https://openrouter.ai/moonshotai/kimi-k3/llms.txt