{"id":"kimi-k2-7-code","object":"model","created":1781568000,"owned_by":"moonshot","display_name":"Kimi K2.7 Code","author":"moonshot","author_name":"Moonshot AI","author_logo":"https://media.empiriolabs.ai/provider-logos/moonshot.png","provider":"moonshot","provider_name":"Moonshot AI","provider_logo":"https://media.empiriolabs.ai/provider-logos/moonshot.png","description":"Kimi K2.7 Code is Moonshot's trillion-parameter agentic coding model with 256K context, always-on reasoning, and text, image, and video inputs.","aliases":["kimi-k2.7-code","moonshotai/kimi-k2.7-code"],"modality":"multimodal","type":"reasoning","category":"text","category_label":null,"modality_label":null,"modalities":["multimodal","text","image","video"],"input_modalities":["text","image","video"],"output_modalities":["text"],"features":["reasoning","function_calling","multimodal","agentic_coding","web_search"],"structured_output":"json_schema","native_inference":false,"weight_precision":null,"hugging_face_id":null,"hugging_face_revision":null,"license_credit":null,"batch_supported":null,"batch_discount_pct":null,"context_window":262144,"context_length":262144,"max_output_tokens":131072,"model_released_at":"2026-06-16","is_new":false,"is_featured":true,"discount":null,"capabilities":{"streaming":true,"system_prompt":true,"web_search":true,"images":true,"audio":false,"video":true,"three_d":false,"reasoning":true},"supported_parameters":[{"name":"max_tokens","label":"Max Tokens","type":"number","description":"Maximum output tokens. Reasoning tokens count toward this limit.","required":false,"metadata":{},"default":32768,"min":1,"max":262144},{"name":"stop","label":"Stop","type":"string","description":"Up to 4 strings where the model will stop generating further tokens.","required":false,"metadata":{"control":"stop-sequences"}},{"name":"tool_web_search","label":"Web Search","type":"boolean","description":"Search the web for real-time information. Adds $0.015 to the request cost for each invoked web search call.","required":false,"metadata":{"ui":{"control":"toggle","section":"Tools"},"billing":{"price_per_call":0.015}},"default":false},{"name":"max_tool_calls","label":"Max Web Searches","type":"number","description":"Max number of web searches the model can run in one request. Each search is billed separately.","required":false,"metadata":{"ui":{"step":1,"control":"slider","section":"Tools"},"visible_when":{"op":"eq","field":"tool_web_search","value":true},"clear_when_hidden":true},"default":5,"min":1,"max":20},{"name":"response_format","label":"Structured Output","type":"enum","description":"Constrain the output to JSON. Use JSON mode for any valid JSON object, or JSON schema to force output that matches a schema you provide.","required":false,"metadata":{"ui":{"control":"json","section":"Output"},"control":"structured-output","so_tier":"json_schema"}}],"supported_endpoints":["POST /v1/chat/completions","POST /v1/responses","POST /v1/messages","POST /v1beta/models/kimi-k2-7-code:generateContent"],"pricing":{"prompt":"0.00000095","completion":"0.000004","image":"0","request":"0","input_cache_read":"0.00000095"},"pricing_rows":[{"spec":"per 1M prompt tokens","label":"Input","value":"$0.95"},{"spec":"per 1M generated tokens","label":"Output","value":"$4.00"},{"spec":"per call when invoked","label":"Web search","value":"$0.015"}],"unit_pricing":[{"unit":"1m_tokens","usd":"0.95","label":"Input"},{"unit":"1m_tokens","usd":"4","label":"Output"},{"unit":"call","usd":"0.015","label":"Web search"}],"limits":{"note":"Supports text, image, and video inputs with 256K context, function calling, JSON mode structured output, and built-in web search at $0.015 per invoked call. Thinking is always on and cannot be disabled; reasoning tokens are billed as output tokens. Temperature and other sampling overrides are ignored because the model service uses fixed sampling settings. Multi-step function calling through the API must replay the assistant message with its reasoning_content field intact.","tool_usage_note":"**Per-tool billing (`usage.tool_usage`)**\n\nWhen this model invokes built-in tools inside a single request, the response carries a normalized `usage.tool_usage` map alongside the token counts. Tool counts are already factored into `cost_usd` and are surfaced for transparency."},"notes":null,"chat_url":"https://platform.empiriolabs.ai/dashboard/playground?model=kimi-k2-7-code","api_url":"https://docs.empiriolabs.ai/models/kimi-k2-7-code","logo":"https://media.empiriolabs.ai/model-logos/kimi.png","default_params":{"max_tokens":32768,"tool_web_search":false,"max_tool_calls":5},"status":"available"}