Ana içeriğe atla
Moonshot AI logosu

Kimi K3 API

Moonshot AI

Uzun kodlama çalışmaları, ajan tabanlı web araştırmaları ve belge işleri için Moonshot AI amiral gemisi; 1M token bağlam penceresi ve her zaman açık düşünme modu.

moonshotai/kimi-k3

Dokümantasyon

Sohbet

Bir sohbet başlatın

Uzun kodlama çalışmaları, ajan tabanlı web araştırmaları ve belge işleri için Moonshot AI amiral gemisi; 1M token bağlam penceresi ve her zaman açık düşünme modu.

Göndermek için Enter · Yeni satır için Shift+Enter

UnificAlly, LLM istemlerinizi ve yanıtlarınızı saklamaz. Faturalandırma amacıyla yalnızca token kullanım bilgilerini tutarız.

UnificAlly API anahtarınızla POST /v1/chat/completions kullanır. Uygun olduğunda sistem ve kullanıcı istemlerini, araçları, akışı ve düşünme modunu destekler.

Güncellendi:

What is the Kimi K3 API?

The Kimi K3 API is live on UnificAlly as moonshotai/kimi-k3, from $2.25/1M tokens of input and $11.25/1M tokens of output. Kimi K3 is Moonshot AI's flagship language model, released on July 16, 2026, built for long coding runs, agentic web research, and document work. It is a from-scratch architecture rather than a K2 revision: 2.8 trillion parameters with 16 of 896 experts active per pass, and a hybrid linear attention design called Kimi Delta Attention paired with Attention Residuals. That attention work is the reason the 1M-token window is usable rather than decorative. On UnificAlly it runs as moonshotai/kimi-k3 with a 1,048,576 token context, 131,072 output tokens by default, and thinking on every request.

Kimi K3 API specs

Model IDmoonshotai/kimi-k3
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Other formatsPOST /v1/responses and POST /v1/messages
Request typesChat, streaming, tool calls, video input
InputText, and video as a public link in a video_url part (Chat Completions only)
Video formatsmp4, mov, webm, mkv, avi, mpeg, 3gp, flv, wmv
OutputText, with the thinking in reasoning_content
Input rate$2.25/1M tokens
Output rate$11.25/1M tokens
Cache read rate$0.225/1M tokens

The Kimi K3 API bills per token, with no subscription. Video counts as input tokens, about 200 per second of footage. The Kimi K3 API pricing guide covers the full rates.

How to use the Kimi K3 API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/chat/completions on https://direct-api.unifically.com with the model ID and a messages array.
  3. Read the reply from choices[0].message.content in the same response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "moonshotai/kimi-k3",
    "messages": [
      { "role": "user", "content": "Plan a migration from Express to Fastify for this service and list the risks in order." }
    ]
  }'

The response comes back synchronously with the answer in content, the thinking in reasoning_content, and the token usage:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "moonshotai/kimi-k3",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "The migration has four stages, and the riskiest is the plugin rewrite...",
        "reasoning_content": "The service uses Express middleware in three places..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 28,
    "completion_tokens": 64,
    "total_tokens": 92,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

Set "stream": true to receive tokens as they generate; thinking and answer text arrive as separate deltas. The stream is sent as server-sent events and ends with data: [DONE]. Send requests to direct-api.unifically.com so long replies are not cut short by a proxy timeout.

Kimi K3 API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier, moonshotai/kimi-k3
messagesarrayrequiredNon-empty array of message objects with role and content (a string or an array of content parts). Roles: system, developer, user, assistant, tool, function
streambooleanfalseIf true, the response is streamed using server-sent events
stream_optionsobjectnoneSet { "include_usage": true } to get a final chunk with token usage. Only used when stream is true
temperaturenumbernoneSampling temperature between 0 and 2. Higher values produce more random output
max_tokensintegernoneMaximum number of tokens to generate in the completion
max_completion_tokensintegernoneAccepted as an alias for max_tokens
reasoning_effortstringnoneHow much the model reasons before answering
top_pnumbernoneNucleus sampling parameter. Alternative to temperature
stopstring or arraynoneUp to four sequences where the model stops generating further tokens
toolsarraynoneList of tools the model may call. Each tool needs a type and a function definition
tool_choicestring or objectnoneControls which tool, if any, is called: none, auto, required, or a specific tool
response_formatobjectnoneSet { "type": "json_object" } to enable JSON mode

The Kimi K3 API documentation has the full reference, including the Responses and Messages formats.

Key features of Kimi K3

#14 on Arena English Text

K3 ranks #14 of 414 models on Arena's English Text board at 1494±6, level with Claude Sonnet 5.5 at 1495 and Claude Opus 5 at 1494, as of October 13, 2026. The rating is no longer preliminary at 11,567 votes. The only open-weights model above it is MiMo V2.6 Pro at #12, on just 1,505 votes.

A 47-place jump in one generation

Kimi K2.6 sits at #61 with 1469 Elo. K3 sits at #14 with 1494, 25 points and 47 places higher, while the context window goes from 262k to 1M tokens.

1M token context, 131k default output

The window holds a large repo, a long filing pack, or a full agent transcript at once. A single response defaults to 131,072 tokens and can be raised to the full 1M when you need one long artifact instead of many calls.

Full agent and tool surface

K3 exposes the whole tool-calling surface through the same endpoint: tool definitions, tool_choice including required, dynamic tool loading for agents carrying a large tool set, strict json_schema structured output, and partial mode. Streaming returns reasoning and answer text as separate deltas, so you can show thinking without parsing it out of the response.

Fourth on the Artificial Analysis index

Independent testing puts K3 at #4 of 187 models on the Intelligence Index at a score of 57. The DeepSWE leaderboard, which runs every model on one shared harness, adds a second outside check: 69% for K3, against the 67.5 Moonshot reported with its own harness.

Open weights since July 27, 2026

Moonshot published the full weights on Hugging Face on July 27, as promised, with a technical report. They ship natively quantized, MXFP4 weights with MXFP8 activations, under the Kimi K3 License, which allows commercial use and fine-tuning. K3 is the first open model in the 3-trillion class, though 2.8T parameters means a multi-node deployment, not a workstation.

What Kimi K3 is best for

  • Long coding sessions

    Multi-hour work across a repo where the model has to hold context and keep going without supervision.

  • Agentic web research

    Multi-step search and synthesis where the model plans queries, reads results, and follows leads.

  • Document and spreadsheet work

    Long filings, contracts, and structured files read in one pass and returned as a brief.

  • Tool-heavy agents

    Strict tool choice and dynamic tool loading, for agents that carry a large tool surface.

  • Single-artifact generation

    Reports, migrations, and drafts that need one very long response instead of stitched calls.

Kimi K3 use cases

Build a coding agent that plans a migration, edits files across a repo, runs tests, and keeps going across a long session without restarting. Use it as the research layer in a product that has to plan queries, read what comes back, and synthesise an answer with sources. It also fits document intelligence work where long contracts, filings, and spreadsheets are read together and returned as structured output. For teams already running an OpenAI-compatible agent loop, K3 slots in as a model id change.

Kimi K3 limitations

Thinking is always on and reasoning_effort defaults to max. Moonshot added low and high after launch, but a request that leaves the field out pays full reasoning cost, so simple chat and extraction carry latency and token spend they do not need unless you ask for less.

Speed is a real constraint. Artificial Analysis measures 62 output tokens per second, below the median for models in its class.

The model is sensitive to thinking history. Moonshot trained it in a preserved-history mode, and a harness that fails to pass earlier reasoning content back, or a session switched to K3 from another model mid-run, can produce unstable output.

It also acts rather than asks. On ambiguous instructions K3 makes unrequested decisions, so constraints belong in the system prompt rather than in follow-up corrections.

Moonshot says plainly that overall performance still trails Claude Fable 5 and GPT 5.6 Sol, and most of the benchmark table it published uses its own in-house harness while competitor rows use other vendors' tooling. Treat those self-reported numbers as unconfirmed.

Kimi K3 vs Claude Fable 5

On Arena's English Text board the two are closer than anywhere else: as of October 13, 2026, K3 sits at #14 with 1494±6 against Fable 5 at #3 with 1513, a 19-point gap. The separation shows up elsewhere. Fable 5 runs adaptive thinking, so it spends reasoning only where a task needs it, while K3 runs at max unless you pick a lower effort per call. Fable 5 also takes image input alongside text through the same endpoint. Moonshot itself puts Fable 5 ahead on overall user experience. Pick K3 for long autonomous coding and web research runs where token cost per unit of work matters, or when you want weights you can run yourself; pick Fable 5 when you want the stronger all-round model and want it to judge how much to think.

When to use Kimi K3

Use Kimi K3 for work that runs long and mostly unattended: repo-scale coding, multi-step research, and document passes that would otherwise be split across many prompts. It is a poor fit for chat, short extraction, and anything latency-sensitive, because it thinks at full effort by default and generates slower than most models in its class.

Kimi K3 API video input

Send a public https link to the clip in a video_url content part next to your text. The model watches the frames and answers about what happens in them.

curl -X POST https://direct-api.unifically.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "moonshotai/kimi-k3",
    "messages": [
      { "role": "user", "content": [
        { "type": "text", "text": "Describe what happens in this clip, scene by scene." },
        { "type": "video_url", "video_url": { "url": "https://example.com/clip.mp4" } }
      ] }
    ]
  }'

The video is billed as input tokens at the input rate on the pricing page: about 200 tokens per second of video, so a 10-second clip adds roughly 2,000 input tokens. The usage block of the response shows the total so you can check what a clip cost.

Video input works on Chat Completions only. The Responses and Messages endpoints do not take video.

SSS

Kimi K3 hakkında sık sorulan sorular

moonshotai/kimi-k3, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key.

After signing up, open the API keys page, make a key and send it as Authorization: Bearer <key> to https://direct-api.unifically.com/v1/chat/completions with the model moonshotai/kimi-k3. The same host also serves the /v1/responses and /v1/messages formats, and per-token usage draws on your prepaid balance.

Pass moonshotai/kimi-k3 and a messages array; to have it watch footage, add a video_url content part with a public https link next to the text (Chat Completions only). The response is synchronous, with the answer in choices[0].message.content and the thinking in reasoning_content, and "stream": true returns server-sent events ending in data: [DONE].

On UnificAlly, $2.25 per 1M input tokens, $11.25 per 1M output tokens, and $0.225 per 1M cached input tokens. Context caching is automatic, and reasoning tokens bill as output. Live rates are on the pricing page.

Yes. Send a public link to the clip in a video_url content part next to your text and the model answers about what it sees and hears. The video is billed as input tokens, about 200 per second of footage.

A 1,048,576 token context window. A single response defaults to 131,072 output tokens and can be raised to the full 1M.

No, thinking runs on every request, but you can turn it down. Moonshot documents reasoning_effort values low, high, and max for K3, and max is the default when the field is left out, so a call that sets nothing pays for full reasoning.

Yes. Moonshot published the full weights on Hugging Face as moonshotai/Kimi-K3 on July 27, 2026, with a technical report, under the Kimi K3 License. Commercial use and fine-tuning are allowed, but a model-as-a-service business with more than 20 million US dollars in revenue over 12 months needs a separate agreement with Moonshot.

Yes. Tool definitions, tool_choice including required, dynamic tool loading, and strict json_schema structured output all work through the standard chat completions request. Partial mode is available for prefilling an assistant turn.

2.8 trillion parameters, with 16 of 896 experts active per forward pass under Moonshot's Stable LatentMoE framework. Sparsity is what keeps a model that size servable.

No. Artificial Analysis measures 62 tokens per second, below the median for its class, and at the default max effort every request pays full reasoning cost. Pick it for hard work, not for chat latency.

As of October 13, 2026, Kimi K3 is #14 of 414 models on Arena's English Text board at 1494 Elo on 11,567 votes, 19 points behind Claude Fable 5 at #3. Its rating is no longer marked preliminary.

Two things. K3 is sensitive to thinking history, so a harness that drops earlier reasoning content can destabilise output quality mid-session. It also acts on ambiguous instructions rather than asking, so constrain it explicitly in the system prompt.

Kimi K3 rehberleri ve karşılaştırmaları

Bu modeli çalıştırmadan önce fiyatlandırmayı, sınırları ve test edilmiş çıktıları inceleyin.