kimi-k3.1-pro

文本

Kimi K3.1 Pro 是 Kimi K3.1 系列的首款模型,面向长程编程、3D 创作与金融研究等复杂任务。该模型在真实代码库中的问题修复、多步工具调用与端到端项目构建上表现突出,也可处理游戏引擎脚本、三维建模与交互式场景生成。该模型原生支持视觉理解并可接受视频输入,适合图文混合内容的分析与生成。其思考模式常开,允许按需调节推理强度,便于在需要多轮规划、外部工具协作与结果核验的智能体场景中使用。上下文窗口约 100 万 token,可用于大体量代码库、长文档与跨文档核对。该模型提供函数调用与结构化输出支持,可用于对返回格式有严格约束的自动化流程。

Input price

¥12.355% off

Market: ¥13

/ M

Output price

¥64.65% off

Market: ¥68

/ M

Cache read

¥1.2355% off

Market: ¥1.3

/ M

Cache write

¥12.355% off

Market: ¥13

/ M

Input

Text / Image / Video

Output

Text

Dynamic pricing

Prices vary by usage tier and request conditions

Tiered price table

  • base
    Input¥12.35
    Output¥64.6
    Cache read¥1.235
    Cache write¥12.35
TierInputOutputCache readCache write
base
¥12.35¥64.6¥1.235¥12.35

API

Quick Start

Drop-in code to call this model with EasyAPI's OpenAI-compatible API.

1

Get your API key

Create an API key from your dashboard and set it as an environment variable:

Replace sk-xxxxxxxx with your API token from the console (Bearer token).

Create API token
shell
export EASYAPI_API_KEY=sk-xxxxxxxx
2

Make your first request

Use moonshotai/kimi-k3.1-pro with the EasyAPI API:

cURL
curl https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{
  "model": "moonshotai/kimi-k3.1-pro",
  "messages": [
    {
      "role": "user",
      "content": "Hello!"
    }
  ]
}'
3

Enable streaming

Add "stream": true to your request body to receive responses as server-sent events:

curl
curl -N https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{"model":"moonshotai/kimi-k3.1-pro","messages":[{"role":"user","content":"Hello!"}],"stream":true}'

Endpoint

Sends a chat completion request. Supports streaming and non-streaming modes.

POSThttps://token.easyapi.com/v1/chat/completions
Authorization
Bearer $EASYAPI_API_KEY
Content-Type
application/json
Model
moonshotai/kimi-k3.1-pro

Send a chat completion request, with streaming or non-streaming responses. Docs

GEThttps://token.easyapi.com/v1/models
Authorization
Bearer $EASYAPI_API_KEY

List the models available to the current account. Docs

Parameters

NameTypeDefaultDescription
modelstring—Model ID, e.g. openai/gpt-4o or anthropic/claude-3-5-sonnet
messagesarray—List of conversation messages, each with role and content
streambooleanfalseWhen true, the response is streamed via SSE
temperaturefloat1Sampling temperature; higher values are more random
max_tokensinteger—Maximum number of tokens generated in a single reply
top_pfloat1Nucleus sampling; limits the cumulative probability of candidate tokens
frequency_penaltyfloat0Frequency penalty; reduces repeated wording
presence_penaltyfloat0Presence penalty; encourages new topics

Using third-party SDKs

Official OpenAI and other SDKs work by swapping the base URL. See integration guide

How is the kimi-k3.1-pro API billed?
kimi-k3.1-pro is pay-as-you-go from ¥12.35 / M. The exact rate is listed in the pricing table on this page and billed at EasyAPI's public price, with no subscription required.
How do I call kimi-k3.1-pro through the API?
EasyAPI exposes an OpenAI-compatible API: create an API key in the console, set base_url to https://token.easyapi.com and model to moonshotai/kimi-k3.1-pro, then send requests to /v1/chat/completions. The Quick Start on this page includes cURL, Python and TypeScript examples; official OpenAI SDKs only need the base_url swapped.
Which request formats does kimi-k3.1-pro support?
OpenAI Chat Completions format including streaming (stream). Official OpenAI and Anthropic SDKs work by swapping base_url; see the Parameters table on this page for the full list.
How do I get started with kimi-k3.1-pro?
Sign up for EasyAPI, create an API key in the console and top up your balance to call kimi-k3.1-pro pay-as-you-go, no subscription needed. You can also try it in the online Playground first, then copy the Quick Start example.