Kimi K2.7 Code API

Call Kimi K2.7 Code through Wokey and review dated catalog pricing, upstream-native API forms, context, and model capabilities.

Model ID
kimi-k2.7-code
Vendors
moonshot
Supply status
Currently callable

Catalog pricing snapshot

Prices are per 1M tokens; request-time pricing controls settlement.

MeterWokeyOfficial referenceSavings
Input$0.285$0.9570%
Output$1.2$470%
Cache read$0.057$0.1970%
Cache write

Price checked:

Official price source: https://platform.kimi.ai/docs/pricing/chat-k27-code

Model capabilities

Context
262,144 tokens
Max output
32,768 tokens
Streaming
Supported
Tools
Supported
Vision
Supported API forms
/v1/chat/completions · /v1/messages

Send a request

/v1/chat/completions

curl https://api.wokey.ai/v1/chat/completions \
  -H "Authorization: Bearer $WOKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"kimi-k2.7-code","messages":[{"role":"user","content":"Hello"}]}'

/v1/messages

curl https://api.wokey.ai/v1/messages \
+  -H "x-api-key: $WOKEY_API_KEY" \
+  -H "anthropic-version: 2023-06-01" \
+  -H "Content-Type: application/json" \
+  -d '{"model":"kimi-k2.7-code","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'

Frequently asked questions

How much does the Kimi K2.7 Code API cost, and how much does it save versus the official API?

As of 2026-08-26, Wokey lists input at $0.285 per 1M tokens and output at $1.2 per 1M tokens; the official references are $0.95 and $4. That is 70% lower for input and 70% lower for output. Request-time pricing controls settlement, and the vendor pricing source is linked on this page.

Which API forms does Kimi K2.7 Code support, and how do I call it through Wokey?

Kimi K2.7 Code supports /v1/chat/completions (Chat Completions requests) and /v1/messages (Messages requests). Set the API base URL to https://api.wokey.ai, authenticate with a Wokey API key, and use the canonical model ID kimi-k2.7-code; you can start with /v1/chat/completions. The Send a request section includes a curl example for every supported API form.

What are the context window and maximum output for Kimi K2.7 Code?

The catalog context window is 262,144 tokens and the maximum output is 32,768 tokens. These are separate limits, and a request must also satisfy the upstream constraints in effect when it is processed.

How are cache reads and cache writes priced for Kimi K2.7 Code?

Cache read: Wokey lists $0.057 per 1M tokens and the official reference is $0.19 per 1M tokens. Cache write: the vendor does not publish a separate meter, so Wokey also shows — as the public price.

How do Kimi K2.7 Code and Kimi K3 differ in price and context?

In this price snapshot, Kimi K2.7 Code lists input/output at $0.285 / $1.2 with a 262,144-token context window; Kimi K3 lists $0.9 / $4.5 with a 1,048,576-token context window. This is a factual price-and-capacity comparison, not a quality ranking; also compare their supported API forms and capabilities.

Related models and documentation

Get API key · kimi-k2.7-code