kimi-k2-thinking 模型是月之暗面提供的具有通用 Agentic 能力和推理能力的思考模型,它擅长深度推理,并可通过多步工具调用,帮助解决各类难题。
模型价格立即体验模型
| 输入 | 活动价¥4/Mt¥4/Mt |
| 缓存 | 读取¥1/Mt |
| 输出 | 活动价¥16/Mt¥16/Mt |
示例代码
1base_url="https://api.ppinfra.com/openai"
2api_key="<您的 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-thinking",
10 "messages": [
11
12 {
13 "role": "user",
14 "content": "Hi there!"
15 }
16 ],
17 "response_format": { "type": "text" }
18}
19EOF
20 模型信息
上下文窗口:
262144
最大输出 token 数:
262144
模态:
支持的功能
API 接入指南
Base URL:
https://api.ppinfra.com/openai
Anthropic Base URL:
https://api.ppinfra.com/anthropic
API Endpoints:
/v1/chat/completions
Model ID:
moonshotai/kimi-k2-thinking
API Key:
创建 & 查询您的 API KeyRate Limits
| 用量级别 | RPM | TPM |
|---|---|---|
| T1 | 10 | 50,000,000 |
| T2 | 100 | 50,000,000 |
| T3 | 1,000 | 50,000,000 |
| T4 | 3,000 | 50,000,000 |
| T5 | 6,000 | 50,000,000 |
功能使用教程