All models

Moonshot

Kimi K3.1 Pro

Kimi K3.1 Pro is Moonshot AI's flagship open-weight reasoning model and the successor to Kimi K3, built for long-horizon coding, agent workflows and knowledge work, with a 1M-token context window and thinking always on.

textstreamingreasoningfunction tools
kimi-k3.1-pro
Open in playground

Our price

$2.00 / $10.00

input / output per 1M

Official

$2.00 / $10.00
Same as official

USD · Published rate · Updated 2026-10-12

First request

Available
curl https://api.tokely.me/v1/chat/completions \
  -H "Authorization: Bearer $TOKELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k3.1-pro",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 1024
  }'

Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.

Capabilities & limits

Context window
1,048,576 tokens
Model max output
1,048,576 tokens
Cached input price
$0.2 per 1M tokens · Official: $0.2
Provider
Moonshot
API model ID
kimi-k3.1-pro
Category
Text
Endpoints
POST /v1/chat/completions
Tokely max output
262,144 tokens / request, including reasoning tokens
Default output
256 tokens. Set an explicit limit for longer responses.
Request limits
16 MB JSON body (including base64) · 128 messages · 32 function tools
Rate limit
60 requests / minute / account, across its keys
Supported input
Text and function tool results · inline PNG, JPEG and WebP images
Model modalities
text, image. Tokely accepts text, inline images and PDFs where listed above; audio and video input are not enabled.

The context includes your instructions, conversation history, tool definitions and generated output. Keep the input and requested output within the model’s context window.

API reference

Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use an OpenAI SDK with the Tokely base URL.

model
Required string: kimi-k3.1-pro
messages
An array of system, developer, user, assistant and tool messages.
max_tokens
Optional integer, 1–262,144. Defaults to 256.
stream
Set true for Server-Sent Events (SSE).
reasoning_effort
Optional reasoning effort. Supported values depend on the model; omit to use its default.
tools
Function definitions executed by your application. Provider-hosted tools are not enabled.

The response contains choices with message or tool_calls, finish_reason, and usage (prompt_tokens, completion_tokens, total_tokens). Streaming sends chat completion chunks.

400 / 415
Invalid request, parameter, endpoint for this model, or content type.
401 / 403
Invalid, revoked or restricted API key.
402
Insufficient account balance or API key budget.
429
Request limit reached. Retry after the indicated delay.
502 / 503 / 504
Upstream failure, temporary service unavailability or request timeout.

Compare nearby prices

USD per million tokens. Compare price and context; these are not quality benchmarks.
ModelInputOutputContext
Kimi K3.1 ProMoonshot · this model$2$101,048,576
GPT-5.4OpenAI$1.75$10.51,050,000
Qwen 3.7 PlusQwen$2.475$9.91,000,000
Qwen 3.5 27BQwen$1.2375$9.9262,144
GPT-5.2OpenAI$1.225$9.8400,000

Frequently asked questions

How much does Kimi K3.1 Pro cost?

$2 per million input tokens, $10 per million output tokens and $0.2 per million cached input tokens. Usage is charged to your Tokely balance.

Do I need a separate Moonshot account?

Use your Tokely API key and balance. A separate provider key is not required.

How do I switch to this model?

Set model to kimi-k3.1-pro and use /v1/chat/completions. Keep your Tokely base URL and API key.

What is the context window?

1,048,576 tokens, including input and output. The Tokely request body and output limits listed above also apply.

More Moonshot models & prices

Compare Kimi K3.1 Pro with other Moonshot versions and with the official developer rates.

All Moonshot models on Tokely · Cheap LLM API — Token Prices & Discounts · Compare AI API gateways · Estimate your token cost

Related versions