# Kimi K2.7 Code (Moonshot) — API pricing and providers

> Code generation. Model id `moonshot/kimi-k2.7-code`. Text model by Moonshot.

- Page: https://infro.io/models/moonshot/kimi-k2.7-code
- Vendor: Moonshot (https://infro.io/models/moonshot)
- Modality: Text
- Endpoint through INFRO: `POST /v1/chat/completions` at https://api.infro.io/v1
- List rate: $0.95 per 1M input tokens and $4.00 per 1M output tokens, with cached input at $0.19 per 1M tokens
- Rates checked: 2026-10-05

Rates are Moonshot's published list price: what the customer's own provider account bills, not an INFRO charge. INFRO is a BYOK control plane; it charges a software subscription and adds 0% to model spend.

## Providers that serve it

| Provider | Model id sent |
| --- | --- |
| OpenRouter | `moonshotai/kimi-k2.7-code` |
| Moonshot AI (Kimi) | `kimi-k2.7-code` |

## Questions

### How much does the Kimi K2.7 Code API cost?

Moonshot's published list rate for Kimi K2.7 Code is $0.95 per 1M input tokens and $4.00 per 1M output tokens, with cached input at $0.19 per 1M tokens (checked 2026-10-05). The provider account you connect bills you at the rate on that account, so a negotiated rate replaces the list rate. INFRO adds 0% to model spend.

### Which providers serve Kimi K2.7 Code?

In INFRO's provider registry, Kimi K2.7 Code can be served by OpenRouter and Moonshot AI (Kimi). You connect your own account with any of them, and INFRO routes and fails over between the ones you connect.

### What is the Kimi K2.7 Code model ID?

Request it from INFRO as "moonshot/kimi-k2.7-code". INFRO sends each provider its own id: OpenRouter "moonshotai/kimi-k2.7-code", Moonshot AI (Kimi) "kimi-k2.7-code".

### How do I call Kimi K2.7 Code through an OpenAI-compatible API?

Point an OpenAI SDK, or any HTTP client, at https://api.infro.io/v1 with an INFRO gateway key and send model "moonshot/kimi-k2.7-code" to POST /v1/chat/completions. INFRO runs the request on a provider account you connected and returns the provider's response with an estimated cost.

### Does INFRO mark up Kimi K2.7 Code usage?

No. Moonshot or the provider you connect bills model usage to your own account. INFRO charges a software subscription for routing, failover, observability, budgets and policy, and takes 0% of model spend.
