Moonshot Text Available

Kimi K2.7 Code API

Moonshot AI Kimi K2.7 Code 多模态编程与 Agent 模型,支持 256K tokens 上下文、长程代码任务、图片与视频理解、深度思考和多步工具调用。

Starting price $1.0200 / 1M tokens · Price snapshot

Waiting to refresh live prices…

Get started Developer guide

Model pricing

Compare all public tiers and current prices for this series on one page.

Input

$1.0200 / 1M tokens

Output

$4.2400 / 1M tokens

Context

262,144

Max output

32,768

Model ID
kimi-k2.7-code
Billing model
Per-Token billing
Available groups
default
Capabilities
chat

API reference

Base URL is https://api.rokoapi.com/v1. The model in requests must use the model IDs listed above.

curl https://api.rokoapi.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{"role":"user","content":"Introduce yourself in one sentence"}]
  }'

For more parameters, limits, and async task queries, read the Kimi K2.7 Code developer guide. Kimi K2.7 Code Developer guide · OpenAI · Authorization

Other Moonshot model series