# Kimi K2.7 Code > Moonshot AI's dedicated coding model, built to follow instructions reliably in long contexts and complete coding tasks. ## Key facts - Model author: Moonshot AI - Input: $0.95 per 1M tokens - Output: $4.00 per 1M tokens - Cached input: $0.19 per 1M tokens - Context window: 262,144 tokens - Input modalities: image, text, video - Output modalities: text - Capabilities: reasoning, tools - Released: 2026-06-12 - Model IDs: `moonshotai/kimi-k2.7-code` - Model page: https://www.realrelay.ai/model/moonshot-ai/kimi-k2.7-code ## Overview Kimi K2.7 Code is Moonshot AI's dedicated coding model. Moonshot AI says it follows instructions reliably in long contexts and completes coding tasks with high success rates. It accepts text, image and video input, supports tool calling, and has a 256K-token context window for large projects. Kimi K2.7 Code has a 256K-token context window. It accepts text, image and video input and returns text output. It was released on June 12, 2026. ## Capabilities Kimi K2.7 Code supports reasoning and tool calling. It accepts text, image and video as input and produces text as output. Thinking is always on, with support for multi-step tool invocation and reasoning, and non-thinking mode is not supported. The model also supports automatic context caching, tool calls and JSON mode. ## Pricing Kimi K2.7 Code costs $0.95 per 1M input tokens and $4.00 per 1M output tokens. Cache reads are $0.19 per 1M tokens. Kimi K2.7 Code is available through RealRelay's OpenAI-compatible API. ## Use cases Use Kimi K2.7 Code as the model behind coding assistants and agents: it works through multi-step tasks with tool calls and keeps following instructions as the conversation grows toward its 256K-token limit. Image and video input let it work from UI screenshots or recorded bug reproductions when writing or fixing code. ## Call it OpenAI-compatible chat completions: ```bash curl https://www.realrelay.ai/v1/chat/completions \ -H "Authorization: Bearer $REALRELAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "moonshotai/kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello"}]}' ``` ## FAQ ### What is Kimi K2.7 Code? Kimi K2.7 Code is Moonshot AI's dedicated coding model. It supports reasoning and tool calling and accepts text, image and video input. ### How much does Kimi K2.7 Code cost? Kimi K2.7 Code costs $0.95 per 1M input tokens and $4.00 per 1M output tokens, with cache reads at $0.19 per 1M tokens. ### What is the context window of Kimi K2.7 Code? Kimi K2.7 Code has a 256K-token context window. ### What inputs and outputs does Kimi K2.7 Code support? Kimi K2.7 Code accepts text, image and video input and returns text output. ### Does Kimi K2.7 Code support tool calling? Yes. Kimi K2.7 Code supports tool calling, so it can call functions you define and use the results in multi-step tasks. It also supports reasoning. ### When was Kimi K2.7 Code released? Kimi K2.7 Code was released on June 12, 2026. ### How do I call Kimi K2.7 Code via the API? Call Kimi K2.7 Code through RealRelay's OpenAI-compatible API using the model ID moonshotai/kimi-k2.7-code.