kimi-k2-instruct
Moonshot AI
Instruction-tuned for agent workflows with reliable tool calling and multilingual coding.
¥3.2689/ M
¥13.0985/ M
¥0.6549/ M
¥0/ M
Top Chinese-English bilingual. Strong long context.
Giá đầu vào
Thị trường: ¥4.02
/ M
Giá đầu ra
Thị trường: ¥20.1736
/ M
Đọc cache
Thị trường: ¥1.0051
/ M
Ghi cache
Thị trường: ¥4.8106
/ M
Đầu vào
Văn bản
Đầu ra
Văn bản
{
"model": "moonshotai/kimi-k2.5",
"messages": [
{
"role": "user",
"content": "Xin chào! Trước tiên hãy giới thiệu về bản thân, bao gồm năng lực chính và các tình huống phù hợp, kèm một ví dụ sử dụng ngắn."
}
],
"stream": false
}{}API
Mã sẵn sàng để gọi mô hình này qua API tương thích OpenAI của EasyAPI.
Tạo API token trong console và đặt làm biến môi trường:
Thay sk-xxxxxxxx bằng mã API từ console (Bearer Token).
Tạo API tokenexport EASYAPI_API_KEY=sk-xxxxxxxxDùng moonshotai/kimi-k2.5 với 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.5",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'Thêm "stream": true vào body để nhận phản hồi qua 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.5","messages":[{"role":"user","content":"Hello!"}],"stream":true}'Gửi yêu cầu chat completion. Hỗ trợ streaming và non-streaming.
https://token.easyapi.com/v1/chat/completionsBearer $EASYAPI_API_KEYapplication/jsonmoonshotai/kimi-k2.5Gửi yêu cầu chat completion, hỗ trợ cả phản hồi streaming và không streaming. Tài liệu
https://token.easyapi.com/v1/modelsBearer $EASYAPI_API_KEYLấy danh sách mô hình khả dụng cho tài khoản hiện tại. Tài liệu
| Tên | Kiểu | Mặc định | Mô tả |
|---|---|---|---|
model | string | — | ID mô hình, ví dụ openai/gpt-4o hoặc anthropic/claude-3-5-sonnet |
messages | array | — | Danh sách tin nhắn hội thoại, mỗi mục gồm role và content |
stream | boolean | false | Khi đặt true, phản hồi được stream qua SSE |
temperature | float | 1 | Nhiệt độ lấy mẫu; càng cao càng ngẫu nhiên |
max_tokens | integer | — | Số token tối đa được tạo trong một phản hồi |
top_p | float | 1 | Nucleus sampling; giới hạn xác suất tích lũy của các token ứng viên |
frequency_penalty | float | 0 | Phạt tần suất; giảm lặp từ |
presence_penalty | float | 0 | Phạt hiện diện; khuyến khích chủ đề mới |
SDK chính thức OpenAI và khác hoạt động khi đổi base URL. Xem hướng dẫn tích hợp
Moonshot AI
Instruction-tuned for agent workflows with reliable tool calling and multilingual coding.
¥3.2689/ M
¥13.0985/ M
¥0.6549/ M
¥0/ M
Moonshot AI
Open-source thinking model built for long-horizon reasoning and hundreds of sequential tool calls across autonomous research, coding, and agent workflows.
¥3.417/ M
¥14.2375/ M
¥0.8543/ M
¥0/ M
Moonshot AI
Latest multimodal model in the K2 series, built for long-horizon coding, code-driven UI/UX generation, and multi-agent orchestration.
¥4.503/ M
¥18.7046/ M
¥0.762/ M
¥5.6288/ 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.
¥4.503/ M
¥18.7046/ M
¥0.9006/ M
¥5.2964/ M