moonshotaiCertifiedReleased 07/11/2025

Kimi K2 Instruct

Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities.

View API reference ↓
Input / output priceFrom$0.57 / $2.30per 1M
24h uptime100.00%
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "moonshotai/kimi-k2",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

console.log(res.choices[0].message.content);

Providers

Dispatch routes requests across these providers and fails over between them without changing the model. Restrict or order providers with team Directives. Prices are gateway list prices before the platform fee.

ProviderContextMax outputLatencyThroughputInputOutputCacheCapabilitiesZDRNo trainingRegionsStatus
novita131K131K1.6 s45 tps$0.57$2.30Read —Write —2 featuresNoNoGlobalCertified

Uptime

24 hours

Request success rate per provider.

novita100.00%

Throughput

last hour

P50 output tokens per second.

novita45 tps

Latency

last hour

P50 time to first token.

novita1.6 s

Getting started

Create a key on the API Keys page and set it as IB_API_KEY. See the quickstart.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "moonshotai/kimi-k2",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

console.log(res.choices[0].message.content);

Top-level parameters

Standard Chat Completions parameters work as documented. These have model-specific behavior.

ParameterTypeRequiredDescription
modelstringYesModel ID in the form creator/model, e.g. moonshotai/kimi-k2. Must be allowed by your team's Directives.
max_tokensnumberNoHard cap on generated tokens, and the basis for the balance reserved per request. Kimi K2 Instruct supports up to 131,072 output tokens.
toolsTool[]NoFunction definitions the model can call. Tool calls are returned in choices[].message.tool_calls.
Supportedmax_tokenstemperaturestoptoolstool_choice

Input limits

InputSourcesLimits
Text—Prompt and response share the 131K-token context window

More models by moonshotai

ModelContextInputOutputCacheRelease
moonshotai/kimi-k3.1-pro1M$2.00$10.00Read $0.20Write —10/23/2026
moonshotai/kimi-k3.1-pro-highspeed1.05M$4.00$20.00Read $0.20Write $5.0010/23/2026
moonshotai/kimi-k3-fast1M$6.00$22.50Read $0.60Write —07/27/2026
moonshotai/kimi-k31M$3.00$15.00Read $0.30Write —07/16/2026
moonshotai/kimi-k2.7-code-highspeed262K$1.90$8.00Read $0.38Write —06/15/2026
moonshotai/kimi-k2.7-code256K$0.95$4.00Read $0.19Write —06/12/2026
moonshotai/kimi-k2.6262K$0.95$4.00Read $0.16Write —04/20/2026
moonshotai/kimi-k2.5256K$0.60$3.00Read —Write —01/26/2026