Kimi K2.7 Code API Moonshot AI
Kimi K2.7 Code is a text generation model from Moonshot AI. Call it through TokenMaster with the model ID moonshotai/kimi-k2.7-code from any OpenAI SDK or tool — one API key, one balance, and you pay only for the tokens you use.
Pricing USD per 1M tokens
| Input | $1.14 |
| Cached input | $0.228 |
| Output | $4.80 |
Billed per token from a prepaid balance. Top up from $10 with USDT; no subscription, no minimum monthly spend.
What it costs
| One chat turn (1,000 input + 500 output tokens) | $0.00354 |
| Summarise a long document (50,000 input + 2,000 output tokens) | $0.0666 |
| 1,000 chat turns a day for 30 days | $106.20 |
Estimates at standard prices, before any cache discount.
Quickstart
Create an API key in the console, then send a standard Chat Completions request with model set to moonshotai/kimi-k2.7-code.
curl https://tokenmaster.store/v1/chat/completions \
-H "Authorization: Bearer $TOKENMASTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "moonshotai/kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello!"}]}'from openai import OpenAI
client = OpenAI(base_url="https://tokenmaster.store/v1", api_key="tm-...")
resp = client.chat.completions.create(
model="moonshotai/kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Details
- Model ID
moonshotai/kimi-k2.7-code- Developer
- Moonshot AI
- Type
- text generation
- Origin
- China
- Smart routing
- In the
tokenmaster/autocandidate pool — the router can pick it automatically when it is the best value for a request. - Web search
- Add "web_search": true or use
moonshotai/kimi-k2.7-code:online to let the model search the web and cite sources. - Availability
- Available to accounts in every supported country and region.