Moonshot AI: Kimi K2.7 Code
Moonshot AI Kimi K2.7 Code API pricing
Kimi K2.7 Code costs $0.380 per million input tokens and $1.60 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.950 input and $4.00 output), and cached input tokens are billed at $0.076 per million. It accepts text and images and returns text, with a 262K-token context window and up to 262K output tokens per response. For every Moonshot AI model and rate, see Kimi API pricing.
Providers
Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.
| Provider | Input /M | Output /M | Cache read /M |
|---|---|---|---|
| Moonshot AI | $0.380 | $1.60 | $0.076 |
Capabilities (12)
Supported parameters (8)
Any other parameter you send is ignored rather than rejected.
Pricing
What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.
| Rate | Standard price | Charged | Unit |
|---|---|---|---|
| Input | $0.950 | $0.380 | per 1M input tokens |
| Output | $4.00 | $1.60 | per 1M output tokens |
| Cached input | $0.190 | $0.076 | per 1M cached input tokens |
Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.
Specifications
- Model ID
kimi-k2.7-code- Developer
- Moonshot AI
- Type
- Text
- Input
- Text and images
- Output
- Text
- Context window
- 262,144 tokens
- Max output
- 262,144 tokens
- Series
- Kimi
- Image input
- Up to 20 MB each
- Endpoint
/v1/chat/completions
Best for
Quickstart
Call kimi-k2.7-code with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.oxyy.ai/v1",
api_key=os.environ["OXYY_API_KEY"],
)
response = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[
{"role": "user", "content": "Explain unified AI APIs in one sentence."},
],
)
print(response.choices[0].message.content)Availability
The share of requests to this model that completed successfully over the last 30 days. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.
Days are UTC days. Days with no completed requests are omitted rather than drawn at 100% — no traffic is not evidence of availability.
Frequently asked questions
What is Kimi K2.7 Code?
How much does Kimi K2.7 Code cost?
What is the context length of Kimi K2.7 Code?
Does Kimi K2.7 Code support tool calling and structured outputs?
What inputs and outputs does Kimi K2.7 Code support?
Which API endpoint does Kimi K2.7 Code use?
What other models does Moonshot AI have?
Alternatives to Kimi K2.7 Code
Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.
