# Sources (accessed 2026-10-24): # - Guide: https://platform.kimi.ai/docs/guide/kimi-k3-1-pro-quickstart # - Pricing: https://platform.kimi.ai/docs/pricing/chat # - Protocols: https://platform.kimi.ai/docs/api/overview # - Request capabilities: https://platform.kimi.ai/docs/api/chat (stream_options.include_usage, prompt_cache_key) # Always thinks: reasoning_effort = "low" | "high" | "max" (default "max"); there is no off toggle. # Mid-conversation flags (live 2026-10-27): # system_updates holds on every API: a late system message (Chat Completions, Messages) or developer message # (Responses) is kept in place (cached prefix survives, instruction followed) [cached/prompt tokens, # control -> test: Chat Completions 7936/7968 -> 7936/7987; Responses 7936/7968 -> 7936/7987; Messages 8192/8228 -> 8192/8247]. # Messages documents only user/assistant roles (https://platform.kimi.ai/docs/api/messages) but accepts role "system" inside messages. # tools.updates (add only) is on Chat Completions and Responses. Chat Completions takes a system message with `tools` # and no content (https://platform.kimi.ai/docs/guide/use-dynamic-tool-loading). Responses takes an # `additional_tools` input item (ResponsesAdditionalToolsItem in https://platform.kimi.ai/docs/openapi.json); the added tool was called # [cached/prompt tokens, control -> test: 7936/7968 -> 7936/8074]. Messages documents no tool addition, so it is left out there. # Tools (live 2026-10-26; https://platform.kimi.ai/docs/api/models-overview): Chat Completions and Messages take auto, none # and required (Messages `any`). A named tool returns 400 "incompatible with thinking enabled", and K3.x always thinks. # Responses accepts only auto (none/required return 400; https://platform.kimi.ai/docs/api/responses), so [api.responses] # overrides choice. strict: Chat Completions defaults function tools to strict = true, Responses function tools take strict, # Messages has no strict field but needs MFJS input schemas and is served by the Chat Completions backend # (https://platform.kimi.ai/docs/api/chat, https://platform.kimi.ai/docs/api/messages). # Batch: the Batch API (/v1/batches, Chat Completions only) bills kimi-k3.1-pro at 60% of standard input, output, cached input and 5m/1h cache writes: https://platform.kimi.ai/docs/pricing/batch (accessed 2026-11-30). Cache hits in batch are best-effort, but a hit is billed at the published 60% price. schema = 2 base_model = "moonshotai/kimi-k3.1-pro" [capabilities] tools = { supported = true, strict = true, choice = ["auto", "none", "required"] } reasoning = { supported = true, default = { type = "effort", value = "max" }, effort = ["low", "high", "max"] } structured_output = true system_updates = true stream_usage = true prompt_cache_key = true cache = { implicit = { ttl = ["5m", "1h"] } } batch = true [api.chat-completions] compatibility = { reasoning_field = "reasoning_content" } capabilities = { tools = { updates = ["add"] } } [api.responses] sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/moonshot/responses" } capabilities = { tools = { choice = ["auto"], updates = ["add"] } } [api.messages] base_url = "https://api.moonshot.ai/anthropic/v1" sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/moonshot/messages" } [cost.text.input] price = 2 cache = { read = 0.2, write = { "5m" = 2, "1h" = 4 } } [cost.text.output] price = 10 [[cost.multipliers]] when = { batch = { equals = true } } factor = { text = 0.6 }