Kimi K2 Instruct
moonshotai/kimi-k2-instruct

Kimi K2 是一种最先进的专家混合 (MoE) 语言模型,具有 320 亿个激活参数和 1 万亿个总参数。使用 Muon 优化器进行训练,Kimi K2 在前沿知识、推理和编码任务方面实现了卓越的性能,同时针对代理功能进行了精心优化,专为工具使用、推理和自主解决问题而设计。

Model price

Input /Mt Output /Mt
Uncached
¥4/Mt¥16/Mt

Sample Code

Copy
1base_url="https://api.ppio.com/openai"
2api_key="<YOUR_API_KEY>"
3
4curl "$base_url/v1/chat/completions" \
5  -H "Content-Type: application/json" \
6  -H "Authorization: Bearer $api_key" \
7  -d @- << 'EOF'
8{
9    "model": "moonshotai/kimi-k2-instruct",
10    "messages": [
11        
12        {
13            "role": "user",
14            "content": "Hi there!"
15        }
16    ],
17    "response_format": { "type": "text" }
18}
19EOF
20  

Model Information

Context window:

131.1K

Maximum output tokens:

100.4K

Modality:

Input:
Text
Output:
Text

Supported features

Function CallingSupported
Structured OutputNot supported
reasoningNot supported

API Integration Guide

Base URL:

https://api.ppio.com/openai

Messages protocol Base URL:

https://api.ppio.com/anthropic

API Endpoints:

/v1/chat/completions

Model ID:

moonshotai/kimi-k2-instruct

Usage tierRPMTPM
T11050000000
T210050000000
T3100050000000
T4300050000000
T5600050000000
With more cost-effective products and services
Help you unleash boundless innovation and lead the new era of intelligence
Inquire now