Kimi K2.7 Code (High-Speed) API — pricing & specs
Kimi K2.7 Code (High-Speed), made by Moonshot AI, accepts text, image, and video input and returns text. On KeepRouter, Kimi K2.7 Code (High-Speed) costs $1.90 per 1M input tokens and $8.00 per 1M output tokens, billed pay-as-you-go with no monthly fee. Call it through a compatible KeepRouter endpoint supported by its active route, with the model id kimi-k2.7-code-highspeed.
| Maker | Moonshot AI |
|---|---|
| Modality | Text, vision, video |
| Input price | $1.90 per 1M tokens |
| Output price | $8.00 per 1M tokens |
| Cached input | $0.3800 per 1M tokens |
| Capabilities | Video input, Vision (image input), Chat completions, Streaming where supported, Tool calling where supported |
| Endpoint | POST /v1/chat/completions or POST /v1/messages (compatible chat routes) |
| Model id | kimi-k2.7-code-highspeed |
How pricing works for Kimi K2.7 Code (High-Speed)
Kimi K2.7 Code (High-Speed) is billed per token — $1.90 per 1M input tokens and $8.00 per 1M output tokens, with cached input at $0.3800 per 1M tokens. The published price is pay-as-you-go, with no monthly fee; actual request cost depends on measured token usage.
Calling Kimi K2.7 Code (High-Speed) on KeepRouter
Point a compatible client at the supported KeepRouter endpoint and set the model to kimi-k2.7-code-highspeed. KeepRouter preserves the client-facing request shape while handling upstream routing or translation. Use POST /v1/chat/completions or, on compatible chat routes, POST /v1/messages; streaming and tool support depend on the model's active route.
cURL
curl https://keeprouter.com/v1/chat/completions \
-H "Authorization: Bearer $KEEPROUTER_KEY" -H "Content-Type: application/json" \
-d '{"model":"kimi-k2.7-code-highspeed","messages":[{"role":"user","content":"Hello"}]}'Python
from openai import OpenAI
client = OpenAI(base_url="https://keeprouter.com/v1", api_key="$KEEPROUTER_KEY")
r = client.chat.completions.create(model="kimi-k2.7-code-highspeed", messages=[{"role":"user","content":"Hello"}])JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://keeprouter.com/v1", apiKey: process.env.KEEPROUTER_KEY });
const r = await client.chat.completions.create({ model: "kimi-k2.7-code-highspeed", messages: [{ role: "user", content: "Hello" }] });Source and verification boundary
Official Moonshot AI website. KeepRouter's live catalog is authoritative for the customer price and enabled endpoint shown here; the maker remains authoritative for upstream model capabilities and limits.
Guides
Related models
- Kimi K3 by Moonshot AI — $3.00 per 1M input tokens and $15.00 per 1M output tokens
- Kimi K2.6 by Moonshot AI — $0.6800 per 1M input tokens and $3.41 per 1M output tokens
- Kimi K2.5 by Moonshot AI — $0.6000 per 1M input tokens and $3.00 per 1M output tokens
- Magistral Medium by Mistral AI — $2.00 per 1M input tokens and $5.00 per 1M output tokens
- Magistral Small by Mistral AI — $0.5000 per 1M input tokens and $1.50 per 1M output tokens
- Grok 4.3 by xAI — $1.25 per 1M input tokens and $2.50 per 1M output tokens
All models & pricing · Quickstart · KeepRouter vs OpenRouter · Glossary · Get an API key
Catalog facts and prices last changed 2026-08-26.