kimi-k2-thinking
Moonshot AI
Open-source thinking model built for long-horizon reasoning and hundreds of sequential tool calls across autonomous research, coding, and agent workflows.
$0.51/ M
$2.125/ M
$0.1275/ M
$0/ M
Instruction-tuned for agent workflows with reliable tool calling and multilingual coding.
Prix d'entrée
Marché : $0.574
/ M
Prix de sortie
Marché : $2.3
/ M
Lecture cache
Marché : $0.1149
/ M
Écriture du cache
/ M
Entrée
Texte
Sortie
Texte
{
"model": "moonshotai/kimi-k2-instruct",
"messages": [
{
"role": "user",
"content": "你好!请先介绍一下你自己,包括你的主要能力与适用场景,并给一个简短的使用示例。"
}
],
"stream": false
}{}API
Code prêt à copier pour appeler ce modèle via l'API compatible OpenAI d'EasyAPI.
Créez un jeton API dans la console et définissez-le comme variable d'environnement :
Remplacez sk-xxxxxxxx par votre jeton API depuis la console (Bearer Token).
Créer un jeton APIexport EASYAPI_API_KEY=sk-xxxxxxxxUtilisez moonshotai/kimi-k2-instruct avec l'API EasyAPI :
curl https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"moonshotai/kimi-k2-instruct","messages":[{"role":"user","content":"Hello!"}]}'Ajoutez "stream": true au corps de la requête pour recevoir les réponses en SSE :
curl -N https://token.easyapi.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"moonshotai/kimi-k2-instruct","messages":[{"role":"user","content":"Hello!"}],"stream":true}'Envoie une requête de complétion de chat. Prend en charge le streaming et le mode non-streaming.
https://token.easyapi.com/v1/chat/completionsBearer $EASYAPI_API_KEYapplication/jsonmoonshotai/kimi-k2-instruct发送对话补全请求,支持流式与非流式。 Docs
https://token.easyapi.com/v1/modelsBearer $EASYAPI_API_KEY获取当前账户可用模型列表。 Docs
| Nom | Type | Par défaut | Description |
|---|---|---|---|
model | string | — | 模型 ID,如 openai/gpt-4o、anthropic/claude-3-5-sonnet |
messages | array | — | 对话消息列表,每项含 role 与 content |
stream | boolean | false | 设为 true 时以 SSE 流式返回 |
temperature | float | 1 | 采样温度,越高越随机 |
max_tokens | integer | — | 单次回复最大生成 Token 数 |
top_p | float | 1 | 核采样,限制候选词累积概率 |
frequency_penalty | float | 0 | 频率惩罚,降低重复用词 |
presence_penalty | float | 0 | 存在惩罚,鼓励新话题 |
Les SDK officiels OpenAI et autres fonctionnent en changeant le base URL. Voir guide d'intégration
Moonshot AI
Open-source thinking model built for long-horizon reasoning and hundreds of sequential tool calls across autonomous research, coding, and agent workflows.
$0.51/ M
$2.125/ M
$0.1275/ M
$0/ M
Moonshot AI
Top Chinese-English bilingual. Strong long context.
$0.51/ M
$2.5593/ M
$0.1275/ M
$0.6103/ M
Moonshot AI
Latest multimodal model in the K2 series, built for long-horizon coding, code-driven UI/UX generation, and multi-agent orchestration.
$0.6721/ M
$2.7917/ M
$0.1137/ M
$0.8401/ M
Moonshot AI
Coding-focused variant in the Kimi K2 family. Accepts text and image inputs, with reasoning on by default. Suited for long-horizon coding and agentic workflows.
$0.6721/ M
$2.7917/ M
$0.1344/ M
$0.7905/ M