Kimi K3 API
moonshotai/kimi-k3Kimi K3 turns conversation messages and long text context into generated answers, plans, code, and document analysis. Its 1,048,576-token context is suited to repository-scale review, long document sets, and sustained agent workflows through Chat Completions.
Kimi K3
Moonshot AI · chat-completions
Quick start
Send one POST request to /v1/chat/completions. Non-streaming calls return the model result and usage directly, with no task creation or status polling.
- Endpoint
- POST /v1/chat/completions
- Model ID
- kimi-k3
- Protocol
- Chat Completions
Request fields
| Field | Requirement | Description |
|---|---|---|
| model | Required | kimi-k3 |
| messages | Required | A non-empty array of conversation messages. |
| max_tokens | Optional | Limits output tokens for this response. |
| stream | Optional | Returns an SSE event stream when true. |
Response and usage
Successful responses include generated content and usage. Billing settles from actual input, output, and cache tokens.
Streaming
Set stream: true to read SSE. Finalize usage accounting from the terminal usage event.
curl --request POST \
+ --url https://api.vidgo.ai/v1/chat/completions \
+ --header 'Authorization: Bearer $VIDGO_API_KEY' \
+ --header 'Content-Type: application/json' \
+ --data '{
"model": "kimi-k3",
"messages": [
{
"role": "user",
"content": "Explain why deterministic retries matter in distributed systems."
}
],
"max_tokens": 1024,
"stream": false
}'Keep API keys on the server. Never expose them in browser code or public repositories.
Continue with
Related Models
Kimi K3 API — Frequently asked questions
What is the Kimi K3 API?
Kimi K3 is developed by Moonshot AI. It accepts ordered conversation messages and returns generated text plus usage through Vidgo AI.
How do I call the Kimi K3 API?
Send a Bearer-authenticated POST request to /v1/chat/completions with model kimi-k3 and a non-empty messages array. Use stream: false for JSON or stream: true for SSE.
How much does Kimi K3 cost?
Per 1M tokens, Vidgo charges 456 credits for input, 2280 for output, 456 for cache reads, and 456 for cache writes. The minimum positive charge for a successful request is 0.001 credit.
What inputs does Kimi K3 accept?
The Vidgo Chat Completions endpoint accepts a non-empty messages array with role and text content. It also accepts max_tokens and the stream switch documented for this protocol.
How large is the Kimi K3 context window?
Kimi K3 has a 1,048,576-token context window. Use clear file, document, and section labels when a request spans a large repository or document set.