Kimi K2.7 Code
Coding-specialised Kimi tier tuned for repository-scale edits and agentic software tasks.
Starting at
$1.57
input price per 1M tokens
Playground
Input
openaiInput
$1.57 / 1M
Output
$7.13 / 1M
Output
Start a conversation
Ask Kimi K2.7 Code anything. Messages are sent directly to the API and charged by token usage.
Sign in to chatPricing
| Option | Price per 1M tokens |
|---|---|
| input | $1.57 |
| output | $7.13 |
| cacheRead | $0.265 |
Quick start
Full API reference →1curl -X POST https://api.api-stock.com/api/v1/chat/completions \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "kimi-k2.7-code",6 "messages": [7 {8 "role": "user",9 "content": "A cinematic shot of a city at dusk"10 }11 ]12 }'
Frequently asked questions
How much does Kimi K2.7 Code cost?
Kimi K2.7 Code starts at $1.57 per 1M input tokens through the API Stock API. You pay per use from a single prepaid balance — there is no subscription — and the final price scales with parameters such as resolution or duration.
How do I call the Kimi K2.7 Code API?
Send a POST request to https://api.api-stock.com/api/v1/chat/completions with your API key and the model "kimi-k2.7-code", using the openai-compatible request format shown in the quick start above.
What happens if a Kimi K2.7 Code request fails?
API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.
Can I use Kimi K2.7 Code with the same API key as other models?
Yes. Every model on API Stock — video, image, music and chat — shares one API key and one prepaid balance, so you can switch to Kimi K2.7 Code without new credentials.