Moonshot route

kimi-k2.7-code

Kimi K2.7 Code API pricing.

One OpenAI-compatible route at the vendor list price with 0% markup, billed per token from one prepaid balance. No subscription required.

Route status Available

#44

Cost rank / 82

mid-range

Cost band

Published route economicsUSD / 1M tokens

Input / 1M tokens

$0.95

Output / 1M tokens

$4.00

Cached input / 1M tokens

$0.08

Context window

262K

Provider

Moonshot

Workload calculator

Put the token rate into context.

These examples apply the published input and output rates directly. Actual cost follows the exact tokens your client sends and the model returns.

This route is the 44th cheapest of 82 comparable text models and cheaper than 36 on the same key. Its context window ranks 66th of 82.

Cost simulationPublished base rate

Short request

$0.013

10K input + 1K output

Agent turn

$0.14

100K input + 10K output

Exact token billing

No request minimum

One model ID change

OpenAI compatible

Cost neighbourhood

Nearby routes, same workload.

Every comparison uses the same 100K-input / 10K-output turn. Changing route is a one-line model ID edit.

Price does not measure task quality. For generation routes, see GPT Image 2.

First request

Route it in one call.

Use any OpenAI SDK or tool. Keep the request shape, point the base URL at RouterPlex, and set the model ID shown here.

Read the quickstart
curl /chat/completions
curl https://api.routerplex.com/v1/chat/completions \
-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{"role": "user", "content": "Hello!"}]
}'

Route notes

Questions before production traffic.

Same endpoint, every route
01How much does the Kimi K2.7 Code API cost?+

Through RouterPlex, Kimi K2.7 Code costs $0.95 per 1M input tokens and $4.00 per 1M output tokens — the vendor list price with 0% markup, billed per token from a prepaid balance you top up from $5. Cached input tokens are billed at $0.08 per 1M instead of the full input rate, which is most of the prompt on a repeated agent or coding loop.

02What does one Kimi K2.7 Code agent turn cost?+

A 100K-token input with a 10K-token reply costs about $0.14 on Kimi K2.7 Code. That makes it the 44th cheapest of 82 comparable text models on RouterPlex, roughly 11.3× the cost of the cheapest option (Muse Spark 1.2 Contributor).

03What is a cheaper alternative to Kimi K2.7 Code?+

Gemini 3.8 Flash from Google is the closest cheaper model on RouterPlex — $0.11 per agent turn against $0.14 for Kimi K2.7 Code, at $0.75/1M input and $3.75/1M output. Both run on the same key and the same endpoint, so switching is a one-line model ID change.

04Is Kimi K2.7 Code cheaper than Claude Haiku 4.5?+

Yes. Per agent turn, Kimi K2.7 Code costs about $0.14 against $0.15 for Claude Haiku 4.5 — 10% less.

05What is the context window of Kimi K2.7 Code?+

Kimi K2.7 Code supports a 262K token context window on RouterPlex, the 66th largest of the 82 models that publish one.

06Can I use Kimi K2.7 Code with the OpenAI SDK?+

Yes. RouterPlex serves Kimi K2.7 Code through an OpenAI-compatible endpoint at https://api.routerplex.com/v1 — point any OpenAI SDK or tool at that base URL with your RouterPlex key and set model to "kimi-k2.7-code".

Deploy this route

Put Kimi K2.7 Code behind one key.

Top up from $5 with no subscription required.