Kimi K2.7 Code
API model name: kimi-k2.7-code
Kimi K2.7 Code is Moonshot's chat model, served on the Api.Airforce unified API. It has a 262K-token context window. Beyond text, it accepts image as input. Capabilities include Vision, Tool calling, Reasoning, Prompt caching. It is priced at $0.65 per million input tokens and $2.73 per million output tokens. That is below the provider's $0.95 official input rate. Access it through the OpenAI-compatible API with one key, alongside 100+ other models on Api.Airforce.
Pricing
Api.Airforce price vs. the provider's official rate.
Specifications
- Provider
- Moonshot
- Type
- chat model
- Context window
- 262K tokens
- Max output
- 262K tokens
- Input
- text, image
- Output
- text
- Prompt caching
- Supported
Capabilities
What is Kimi K2.7 Code used for?
- Chatbots & assistants — conversational AI, drafting, summarizing and Q&A.
- Image understanding — analyze photos, screenshots, charts and scanned documents.
- Agents & automation — function calling and tool use for multi-step workflows.
- Complex reasoning — math, coding and step-by-step problem solving.
- Long-context tasks — process entire documents or codebases in a single prompt.
- Real-time experiences — stream tokens for responsive chat and apps.
Kimi K2.7 Code vs. similar models
| Model | Intelligence | Context | Input / 1M | Output / 1M |
|---|---|---|---|---|
| Kimi K2.7 Code | — | 262K | $0.65 | $2.73 |
| Kimi K2 | 26.3 | 131K | $0.87 | $3.42 |
| Kimi K2 0711 | — | — | $0.87 | $3.42 |
| Kimi K2 0905 | — | — | — | — |
Prices are Api.Airforce pay-as-you-go rates per 1M tokens. Context is the maximum input length.
Related models
Kimi K2.7 Code — frequently asked questions
- How much does Kimi K2.7 Code cost?
- Kimi K2.7 Code is billed pay-as-you-go at $0.65 per 1M input tokens and $2.73 per 1M output tokens. There is no subscription — you only pay for what you use.
- What is the context window of Kimi K2.7 Code?
- Kimi K2.7 Code supports a context window of up to 262K tokens. It can return up to 262K tokens in a single response.
- What can Kimi K2.7 Code do?
- Kimi K2.7 Code supports Vision, Tool calling, Reasoning, Prompt caching.
- Is Kimi K2.7 Code free to use?
- Kimi K2.7 Code is a paid, pay-as-you-go model — no subscription, you are only charged for usage.
- How do I use Kimi K2.7 Code via the API?
- Kimi K2.7 Code is OpenAI-compatible. Point any OpenAI SDK at https://api.airforce/v1 and pass the model ID kimi-k2.7-code with your Api.Airforce API key.
- Who makes Kimi K2.7 Code?
- Kimi K2.7 Code is Moonshot's chat model, served through the unified Api.Airforce gateway alongside 100+ other models.
Use Kimi K2.7 Code via the API
OpenAI-compatible — point any OpenAI SDK at https://api.airforce/v1 and pass kimi-k2.7-code as the model.
curl https://api.airforce/v1/chat/completions \
-H "Authorization: Bearer $AIRFORCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{ "role": "user", "content": "Hello!" }]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.airforce/v1", api_key="$AIRFORCE_API_KEY")
r = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.airforce/v1", apiKey: process.env.AIRFORCE_API_KEY });
const r = await client.chat.completions.create({
model: "kimi-k2.7-code",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);