# Moonshot: kimi-k2.7-code — API on ChinaAPI

> Coding-focused Kimi model, stronger on long-horizon repo work with less overthinking

- Canonical page: https://chinaapi-ru.com/models/kimi-k2.7-code/
- Model ID: `kimi-k2.7-code`
- Context window: 256K
- Modalities: Text, image input
- Pricing: $0.9028/M input, $3.75/M output tokens (USD)
- Endpoint: OpenAI-compatible `POST https://api.chinaapi-ru.com/v1/chat/completions`
- Pricing basis: Token-model rates are synchronized from the gateway and may follow providers' official China list prices where configured. Live pricing is authoritative.
- Access: no mainland-China account or phone number required; $2 free trial credit
- Sign up: https://dash.chinaapi-ru.com/register?utm_source=chinaapi&utm_medium=model-md&utm_campaign=kimi-k2.7-code

## Quickstart

```
curl -X POST https://api.chinaapi-ru.com/v1/chat/completions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [
      {"role": "user", "content": "Summarize the main tradeoffs for this API workload."}
    ]
  }'

from openai import OpenAI

client = OpenAI(
    api_key="sk-...",
    base_url="https://api.chinaapi-ru.com/v1",
)

response = client.chat.completions.create(
    model="kimi-k2.7-code",
    messages=[
        {"role": "user", "content": "Summarize the main tradeoffs for this API workload."}
    ],
)
print(response.choices[0].message.content)
```

## FAQ

**How do I use kimi-k2.7-code?**
Use kimi-k2.7-code through ChinaAPI with an API key and the OpenAI-compatible endpoint shown on this page.

**How much does kimi-k2.7-code cost?**
kimi-k2.7-code is $0.9028/M input, $3.75/M output tokens, paid in USD. The live pricing page is authoritative. Token-model rates are synchronized from the gateway and may follow providers' official China list prices where configured. Live pricing is authoritative.

**Does kimi-k2.7-code need a Chinese account?**
No. ChinaAPI provides access without a mainland-China account or phone number and includes a $2 free trial. Check live pricing for the displayed USD rate.

---
Markdown twin of https://chinaapi-ru.com/models/kimi-k2.7-code/ — generated by scripts/gen_model_pages.py. Full catalog: https://chinaapi-ru.com/llms-full.txt
