Kimi K2 Thinking

Moonshot AI · Text · Context 256K · max output 98.3K tokens

kimi-k2-thinking Try

Pricing

Per 1 million tokens
MarkasAIVendor list price
InputRp 7.186Rp 8.409
OutputRp 30.573Rp 35.780
CacheRp 2.156
Cache writeRp 7.186

MarkasAI sale prices in Rupiah, read from the same catalog as GET /v1/models. Prices can change and apply to later requests.

Specifications

Model ID
kimi-k2-thinking
Provider
Moonshot AI
Type
Text
Endpoint
POST /v1/chat/completions
Context window
256,000 tokens
Output limit per request
98,304 tokens

About this model

Kimi K2 Thinking is Moonshot AI’s most advanced open reasoning model to date, extending the K2 series into agentic, long-horizon reasoning. Built on the trillion-parameter Mixture-of-Experts (MoE) architecture introduced in...

Quoted from the provider's public catalog, in English.

Call example

curl https://api.markas.ai.id/v1/chat/completions \
  -H "Authorization: Bearer $MARKASAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2-thinking",
    "messages": [{"role": "user", "content": "What is an API?"}],
    "max_tokens": 300
  }'
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.markas.ai.id/v1", api_key=os.environ["MARKASAI_API_KEY"])

resp = client.chat.completions.create(
    model="kimi-k2-thinking",
    messages=[{"role": "user", "content": "What is an API?"}],
    max_tokens=300,
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.markas.ai.id/v1", apiKey: process.env.MARKASAI_API_KEY });

const resp = await client.chat.completions.create({
  model: "kimi-k2-thinking",
  messages: [{ role: "user", content: "What is an API?" }],
  max_tokens: 300,
});
console.log(resp.choices[0].message.content);

Keep your API key in the MARKASAI_API_KEY environment variable. Read the endpoint docs

All models