Moonshot AI's Kimi K2.7 Code served through the OpenRouter aggregator - a coding-focused member of the Kimi K2 family built to complete end-to-end programming tasks reliably over long contexts, with a native multimodal mixture-of-experts architecture, 256K context, and image input. Billed at OpenRouter's actual usage cost.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 1,375 | $0.92 |
| Output Tokens | 6,503 | $4.34 |
| Cached Tokens | 278.7 | $0.19 |
* 1,500 credits โ $1 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"messages": [
{
"role": "user",
"content": "Summarize the attached report in 5 bullets."
}
],
"max_tokens": 1024
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model ID in vendor/model form, e.g. "moonshotai/kimi-k2.7-code". |
messages | array | Yes | - | Chat messages in OpenAI format (system/user/assistant roles). |
temperature | number | No | 0.7 | Sampling temperature (0-2). |
max_tokens | integer | No | 2048 | Maximum completion tokens. |
stream | boolean | No | false | Stream the response as server-sent events. |
OpenAI-compatible chat completion request via OpenRouter
curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "moonshotai/kimi-k2.7-code",
"messages": [
{
"role": "user",
"content": "Summarize the attached report in 5 bullets."
}
],
"max_tokens": 1024
}'POST /llm/openrouter/v1/chat/completions