All models
Kimi

Kimi K2.7 Code

moonshotai/kimi-k2.7-code

Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts.

Pricing

Input$0.7per 1M tokens
Output$3.50per 1M tokens
Cached input$0.15per 1M tokens read from cache

Specifications

Context window262Ktokens
Max output66Ktokens
ProviderKimi
CapabilitiesVision · Reasoning · Function calling
Input typestext, image

Use Kimi K2.7 Code

Point your existing OpenAI SDK at xKiro and pass moonshotai/kimi-k2.7-code as the model. Nothing else in your code changes.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.xkiro.com/v1",
    api_key="YOUR_XKIRO_KEY",
)

response = client.chat.completions.create(
    model="moonshotai/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

max_tokens · temperature · top_p · stop · frequency_penalty · presence_penalty · seed · stream · tools · tool_choice · reasoning · include_reasoning

Related models

Call Kimi K2.7 Code through the same endpoints you already use.

Get an API key