Moonshot AI: Kimi K2.7 Code

moonshot/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.

Coding-focused model built to complete end-to-end programming tasks reliably over long contexts.
ModalitiesTextImageText
Price$0.380 / $1.60 per 1M tokens in / outAll Kimi API pricing
Context262K

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.

ProviderInput /MOutput /MCache read /M
Moonshot AI$0.380$1.60$0.076

Capabilities (12)

StreamingTool callingStructured outputThinkingReasoningSystem promptVisionMultilingualPrompt cachingAnthropic ApiResponses ApiThinking Always On

Supported parameters (8)

modelmessagesstreamtemperaturemax_tokenstoolstool_choiceresponse_format

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.

Input price
$0.380
per 1M input tokens · standard price $0.950
Output price
$1.60
per 1M output tokens · standard price $4.00
RateStandard priceChargedUnit
Input$0.950$0.380per 1M input tokens
Output$4.00$1.60per 1M output tokens
Cached input$0.190$0.076per 1M cached input tokens

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

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

ReasoningCodingAgenticLong contextOpen weights

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.

Success rate (30 days)
87.20%
over 149 requests
Days with traffic
12
of the last 30 days

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?
Coding-focused model built to complete end-to-end programming tasks reliably over long contexts.
How much does Kimi K2.7 Code cost?
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. You pay per request, with no subscription.
What is the context length of Kimi K2.7 Code?
Kimi K2.7 Code has a context window of 262,144 tokens, and can return up to 262,144 tokens in one response.
Does Kimi K2.7 Code support tool calling and structured outputs?
Yes — Kimi K2.7 Code supports both tool calling and structured outputs.
What inputs and outputs does Kimi K2.7 Code support?
Kimi K2.7 Code accepts text and images as input and returns text.
Which API endpoint does Kimi K2.7 Code use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "kimi-k2.7-code", authenticated with your Oxyy API key.
What other models does Moonshot AI have?
Moonshot AI also offers Kimi K2.6 through Oxyy.

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.

Explore more models

More models from Moonshot AI