> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.empiriolabs.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.empiriolabs.ai/_mcp/server.

# 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.

![Kimi K2.7 Code Highspeed](https://media.empiriolabs.ai/model-logos/kimi.png)

[Moonshot AI](/providers/moonshot) · Text Generation

`POST /v1/chat/completions`

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.

## At a glance

| Field               | Value                                                                                                                                  |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Model id            | `kimi-k2-7-code-highspeed`                                                                                                             |
| Model release date  | 2026-06-16                                                                                                                             |
| Input modalities    | Text, Image, Video                                                                                                                     |
| Output modalities   | Text                                                                                                                                   |
| Context window      | 256K                                                                                                                                   |
| Weight precision    | -                                                                                                                                      |
| Max output tokens   | 131,072                                                                                                                                |
| Region              | International                                                                                                                          |
| Features            | reasoning, function_calling, multimodal, agentic_coding, web_search                                                                    |
| Native inference    | No                                                                                                                                     |
| New                 | No                                                                                                                                     |
| Structured output   | JSON Schema                                                                                                                            |
| Supported endpoints | `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `POST /v1beta/models/kimi-k2-7-code-highspeed:generateContent` |
| Alternate model ids | `kimi-k2.7-code-highspeed`, `moonshotai/kimi-k2-7-code-highspeed`, `moonshotai/kimi-k2.7-code-highspeed`                               |

## Pricing

| Charge     | Spec                    | Rate    |
| ---------- | ----------------------- | ------- |
| Input      | per 1M prompt tokens    | \$1.90  |
| Output     | per 1M generated tokens | \$8.00  |
| Web search | per call when invoked   | \$0.015 |

## Example request

```bash
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":"Hello"}]}'
```

## Parameters

| Parameter         | Type    | Required | Default | Description                                                                                                                              |
| ----------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `max_tokens`      | number  | no       | `32768` | Maximum output tokens. Reasoning tokens count toward this limit. · Range: 1 – 262144                                                     |
| `stop`            | string  | no       | -       | Up to 4 strings where the model will stop generating further tokens.                                                                     |
| `tool_web_search` | boolean | no       | false   | Search the web for real-time information. Adds \$0.015 to the request cost for each invoked web search call.                             |
| `max_tool_calls`  | number  | no       | `5`     | Max number of web searches the model can run in one request. Each search is billed separately. · Range: 1 – 20                           |
| `response_format` | enum    | no       | -       | 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. |

## Notes

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.

---

*Machine-readable schema:* `GET https://api.empiriolabs.ai/v1/models/kimi-k2-7-code-highspeed`.