Kimi K2.7 Code Highspeed API

Kimi K2.7 Code Highspeed is the faster-serving tier of Moonshot's agentic coding model, with 256K context, always-on reasoning, and image and video input.

Moonshot AI Text Generation 256K context Released Jun 16, 2026 International Proprietary Endpoint

About Kimi K2.7 Code Highspeed

Kimi K2.7 Code Highspeed is the faster-serving tier of Moonshot's agentic coding model, with 256K context, always-on reasoning, and image and video input.

The faster-serving tier of Kimi K2.7 Code. Supports text, image, and video inputs, function calling, JSON mode structured output, and built-in web search billed at $0.015 per invoked call. Thinking is always on and reasoning tokens are billed as output tokens. Temperature and other sampling overrides are ignored because the model service uses fixed sampling settings. Multi-step function calling must replay the assistant message with its reasoning_content field intact. Explicit cache controls, batches, and fine-tuning are not supported.

Also known as Moonshot AI Kimi K2.7 Code Highspeed

reasoning function calling multimodal agentic coding web search

Kimi K2.7 Code Highspeed specs

Model ID
kimi-k2-7-code-highspeed
Author
Moonshot AI
Category
Text Generation
Released
Jun 16, 2026
Context window
256K tokens
Max output
131,072 tokens
Input
TextImageVideo
Output
Text
Structured output
JSON Schema
Region
International
Endpoints
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1beta/models/kimi-k2-7-code-highspeed:generateContent
Alternate model IDs
kimi-k2.7-code-highspeedmoonshotai/kimi-k2-7-code-highspeedmoonshotai/kimi-k2.7-code-highspeed

Kimi K2.7 Code Highspeed API pricing

Live pay-as-you-go rates from the EmpirioLabs catalog. You can also choose a plan with weekly allowances.

Type
Spec
Rate
Input
per 1M prompt tokens
$1.90
Output
per 1M generated tokens
$8.00
Web search
per call when invoked
$0.015
Compare on the full pricing page

How to call the Kimi K2.7 Code Highspeed API

Kimi K2.7 Code Highspeed serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id kimi-k2-7-code-highspeed. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2-7-code-highspeed",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="kimi-k2-7-code-highspeed",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Kimi K2.7 Code Highspeed API reference

Kimi K2.7 Code Highspeed API parameters

Request parameters supported by the Kimi K2.7 Code Highspeed API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
max_tokensnumber327681 to 262144Maximum output tokens. Reasoning tokens count toward this limit.
stopstring--Up to 4 strings where the model will stop generating further tokens.
tool_web_searchbooleanfalse-Search the web for real-time information. Adds $0.015 to the request cost for each invoked web search call.
max_tool_callsnumber51 to 20Max number of web searches the model can run in one request. Each search is billed separately.
response_formatenum--Constrain the output to JSON. Use JSON mode for any valid JSON object, or JSON schema to force output that matches a schema you provide.

Good to know

The faster-serving tier of Kimi K2.7 Code. Supports text, image, and video inputs with 256K context, function calling, JSON mode structured output, and built-in web search at $0.015 per invoked call. Thinking is always on and cannot be disabled; reasoning tokens are billed as output tokens. Temperature and other sampling overrides are ignored because the model service uses fixed sampling settings. Multi-step function calling through the API must replay the assistant message with its reasoning_content field intact.

Per-tool billing (usage.tool_usage)

When this model invokes built-in tools inside a single request, the response carries a normalized usage.tool_usage map alongside the token counts. Tool counts are already factored into cost_usd and are surfaced for transparency.

Kimi K2.7 Code Highspeed on the blog

Announcements, prompt tests, and comparisons that cover this model.

Kimi K2.7 Code Highspeed API: common questions

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

On EmpirioLabs, Kimi K2.7 Code Highspeed is billed pay as you go: Input $1.90 per 1M prompt tokens; Output $8.00 per 1M generated tokens; Web search $0.015 per call when invoked. You can also choose a plan with weekly allowances. The live rate card on this page always matches what the API charges.

What inputs and outputs does Kimi K2.7 Code Highspeed support?

Kimi K2.7 Code Highspeed takes Text, Image, Video as input and returns Text.

What is the context window of Kimi K2.7 Code Highspeed?

Kimi K2.7 Code Highspeed supports a 256K-token context window with up to 131,072 output tokens per response.

Is the Kimi K2.7 Code Highspeed API OpenAI-compatible?

Yes. Kimi K2.7 Code Highspeed serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to kimi-k2-7-code-highspeed.

What is the model ID for Kimi K2.7 Code Highspeed?

Send kimi-k2-7-code-highspeed as the model in your request. The alternate IDs kimi-k2.7-code-highspeed, moonshotai/kimi-k2-7-code-highspeed, moonshotai/kimi-k2.7-code-highspeed also work.

When was Kimi K2.7 Code Highspeed released?

Moonshot AI released Kimi K2.7 Code Highspeed on Jun 16, 2026.

Where is Kimi K2.7 Code Highspeed served from?

Kimi K2.7 Code Highspeed on EmpirioLabs is served from International.

Can I try Kimi K2.7 Code Highspeed in the browser before integrating?

Yes. The EmpirioLabs playground runs Kimi K2.7 Code Highspeed in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Kimi K2.7 Code Highspeed API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make. You can also choose a plan with weekly allowances.

Compare Kimi K2.7 Code Highspeed with other models

All model comparisons

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.