APIMart
Back to all models

Kimi K3 API

Moonshot AIModel ID kimi-k3Text modelReleased July 16, 2026

Use Kimi K3 to track down a flaky test, reconcile dates that disagree across several sources, or catch a wrong total on an invoice image.

Max input
1,000,000 tokens
Max output
104,857 tokens
Input → output
Text, Image → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Kimi K3 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Kimi K3.

Try Kimi K3 with your own material

Flaky failure investigation

Send the failure logs, the relevant code and the test configuration to Kimi K3, and have it find the issue that only shows up under certain conditions, with the evidence and a way to reproduce it. After the fix, rerun many times under those conditions to confirm it is gone.

Example: Why does this test only fail sometimes?

Material

CI log
export.test.ts fails about 1 run in 10, with the error: contents of /tmp/export.csv were overwritten.
export.test.ts
const out = '/tmp/export.csv'; await exportOrders(out);
Test config
Jest runs 4 workers in parallel, and report.test.ts also writes to /tmp/export.csv.

PromptUsing the logs, code and test configuration, find why the test fails intermittently, explain the evidence, and give the fix and how to verify it.

Sample answer · written by hand to show the reasoning

Both test files write to the same fixed path, and when the parallel workers happen to run them at the same time, the later write overwrites the earlier file, which is why the failure is intermittent. Give each test its own temporary directory, for example a path from fs.mkdtemp, then run the suite 50 times in parallel mode to confirm it no longer fails.

About the Kimi K3 API

  • An open-weight multimodal flagship

    Moonshot AI released Kimi K3 on July 16, 2026: an MoE model with 2.8T total parameters and 104B activated per token, with weights published under the Kimi K3 License and native text and image understanding.

  • 1M context with flat pricing

    The official context length is 1,048,576 tokens, four times the K2 series. Official pricing doesn’t change with context length, so long requests carry no surcharge.

  • Thinking is always on

    Kimi K3 reasons before every answer and this can’t be turned off. Moonshot’s official API sets depth with reasoning_effort: low, high or max, with max as the default.

  • Kimi K3 API key and access

    You don’t need a separate Kimi K3 API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID kimi-k3.

Kimi K3 official benchmark results

Selected results Moonshot AI published at launch.

  • SWE-Marathon

    42.0

    A coding evaluation. Ahead of Claude Opus 4.8 (40.0), GPT-5.6 Sol (39.0) and Claude Fable 5 (35.0).

  • BrowseComp

    91.2

    Agents searching the web for hard-to-find information. Ahead of GPT-5.6 Sol (90.4) and Claude Fable 5 (88.0).

  • MCPMark-Verified

    94.5

    Agents completing tasks with tools over MCP. Ahead of GPT-5.6 Sol (92.9) and Claude Fable 5 (87.4).

  • AA-LCR

    74.7

    Long-context reasoning. Slightly ahead of GPT-5.5 (74.3) and GPT-5.6 Sol (73.7); Claude Fable 5 scores 70.0.

  • OmniDocBench

    91.1

    A document-parsing vision evaluation. Ahead of Claude Fable 5 (89.8), GPT-5.5 (89.4) and GPT-5.6 Sol (85.8).

  • FrontierSWE

    81.2

    A coding evaluation. Behind Claude Fable 5 (86.6), ahead of GPT-5.6 Sol (71.3) and Claude Opus 4.8 (66.7).

How to call the Kimi K3 API

To call Kimi K3, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kimi-k3",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Kimi K3 access details

Model IDkimi-k3
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Kimi K3 API request parameters

Kimi K3 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use kimi-k3 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Kimi K3 API pricing

The Kimi K3 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input24Credits~$2.422.8Credits~$2.2821.6Credits~$2.1630Credits~$320%
Cached input2.4Credits~$0.242.28Credits~$0.2282.16Credits~$0.2163Credits~$0.320%
Output120Credits~$12114Credits~$11.4108Credits~$10.8150Credits~$1520%

Prices are for reference only. View full pricing

Why call Kimi K3 API through APIMart

  • 20% below official pricing

    Kimi K3 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Moonshot AI's official prices, and cached input costs just $0.24 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Kimi K3, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Kimi K3 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Moonshot AI model should you choose?

Base prices per 1M tokens (USD). Your Kimi K3 API key works for every model in the table; just change the model parameter.

Differences between Moonshot AI models
ComparisonKimi K3 CurrentKimi K2.5Kimi K2.6Kimi K2.7 Code
Best forLong-horizon coding, Web research, Images and documentsVisual coding, Image input, Open weightsCoding agents, Long-horizon tool use, Open weightsLong-horizon coding, Agentic tool use, Always thinks
Max input1,000,000 tokens262,144 tokens262,144 tokens262,144 tokens
Max output104,857 tokens262,144 tokens262,144 tokens262,144 tokens
Input price$2.4$0.4112$0.76$0.76
Output price$12$0.5551$3.2$3.2

Kimi K3 FAQ

Is the Kimi K3 context window 1,048,576 or 1,000,000 tokens?

Moonshot’s documentation gives Kimi K3 a context length of 1,048,576 tokens; in the official API, output defaults to at most 131,072 tokens per request and can be raised to 1,048,576. The maximum input and maximum output on this page come from APIMart’s pricing data: up to 1,000,000 input tokens and up to 104,857 output tokens. When calling it on APIMart, size your requests by the numbers on this page.

Can I turn off thinking on Kimi K3?

No. According to Moonshot’s documentation, Kimi K3 always has thinking enabled and reasons before it answers, so responses take a little longer. In Moonshot’s official API, reasoning_effort selects low, high or max, with max as the default. For faster replies, cap the output with max_tokens, or use a smaller model for simple requests.

How is Kimi K3 different from Kimi K2.6?

Kimi K3 is the next generation after the K2 series. According to Moonshot, K3 raises the context length from the K2 series’ 262,144 tokens to 1,048,576 tokens and is about 2.5 times as efficient to scale as K2. To switch from Kimi K2.6 on APIMart, set model to kimi-k3 and rerun your own prompts to check the output.

Kimi K3 is open-weight, so why use the API?

Kimi K3’s weights are public under the Kimi K3 License, so you can host it yourself, but it has 2.8T total parameters and the official weights are in MXFP4. At roughly half a byte per parameter, the weights alone exceed 1 TB, which needs a multi-GPU server. If you only need to call the model, the APIMart API bills per token with no hardware to provision.

Does Kimi K3 support image input?

Yes. Kimi K3 natively accepts text and image input and returns text, so it can read screenshots, scans and charts. Moonshot’s official API does not accept public image URLs and requires base64-encoded images; base64 is also the recommended way to send images through APIMart.

How can I reduce Kimi K3 API costs?

Start with caching: at Moonshot’s official prices, cache-hit input costs one tenth of cache-miss input. Keep the fixed system prompt and long documents at the start of each request and unchanged, and put the changing question at the end, so repeated requests hit the cache more often. Then control output: the official output price is 5 times the input price, so cap length with max_tokens and state the format and length you need in the prompt. APIMart rates are in the price table on this page.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Kimi K3 in the text category to start exploring.

Which model ID does the Kimi K3 API use?

Set model to kimi-k3. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Kimi K3?

On APIMart, Kimi K3 accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Kimi K3 can output up to 104,857 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Kimi K3 API cost?

The Kimi K3 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $2.4 per million input tokens and $12 per million output tokens. Diamond: $2.16 per million input tokens and $10.8 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.