APIMart
Back to all models

Kimi K2.6 API

Moonshot AIModel ID kimi-k2.6Text modelReleased April 20, 2026

Use Kimi K2.6 to fix a failing test in a large repository, run a multi-step research task with tools, or read the numbers off a chart screenshot.

Max input
262,144 tokens
Max output
262,144 tokens
Input → output
Text, Image → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Kimi K2.6 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 K2.6.

Try Kimi K2.6 with your own material

Fixing failing tests in a repository

Give Kimi K2.6 the failing test output, the files it touches and a tool to run tests, and ask for the smallest patch that makes it pass. Review the diff and run the full suite before merging.

Example: Why does this test fail after the refactor?

Material

Test output
expected parseDate("2026-03-01") to be March 1, received February 28
date.ts (after refactor)
return new Date(input); // was: new Date(input + "T00:00:00")

PromptRead the failing test and the changed function, explain the cause, and give the smallest fix.

Sample answer · written by hand to show the reasoning

A date-only string is parsed as midnight UTC, so in time zones behind UTC it shows as the previous day. The old code appended T00:00:00, which is parsed as local time. Restore that suffix, or parse the year, month and day yourself, and run the test in a time zone behind UTC to confirm.

About the Kimi K2.6 API

  • Built for coding agents

    Moonshot positions Kimi K2.6 around open-source coding, long-horizon execution and agent swarms, with multi-step tool calls interleaved with thinking.

  • 262K context, thinking on or off

    The context window is 262,144 tokens. Thinking is on by default; turn it off with thinking set to disabled for faster, shorter answers.

  • 58.6 on SWE-Bench Pro

    On the Kimi K2.6 model card it scores 58.6 on SWE-Bench Pro, ahead of GPT-5.4 (57.7), and 83.2 on BrowseComp, up from 50.7 and 74.9 for Kimi K2.5.

  • Kimi K2.6 API key and access

    You don’t need a separate Kimi K2.6 API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID kimi-k2.6; Kimi K2.6 API pricing is in the table on this page.

Kimi K2.6 official benchmark results

Selected results Moonshot AI published at launch.

  • SWE-Bench Pro

    58.6

    Fixing real issues in code repositories. Ahead of GPT-5.4 (57.7), Gemini 3.1 Pro (54.2) and Claude Opus 4.6 (53.4); Kimi K2.5 scores 50.7.

  • SWE-Bench Verified

    80.2

    A verified set of repository issues. Close to Claude Opus 4.6 (80.8) and Gemini 3.1 Pro (80.6); Kimi K2.5 scores 76.8.

  • HLE-Full (with tools)

    54.0

    Hard expert questions answered with tools. Ahead of Claude Opus 4.6 (53.0), GPT-5.4 (52.1) and Gemini 3.1 Pro (51.4).

  • Terminal-Bench 2.0

    66.7

    Agents completing tasks in a terminal. Ahead of GPT-5.4 and Claude Opus 4.6 (65.4), behind Gemini 3.1 Pro (68.5); Kimi K2.5 scores 50.8.

  • BrowseComp

    83.2

    Agents searching the web for hard-to-find information. Ahead of GPT-5.4 (82.7), close to Claude Opus 4.6 (83.7), behind Gemini 3.1 Pro (85.9); Kimi K2.5 scores 74.9.

  • OSWorld-Verified

    73.1

    Agents operating a computer to complete tasks. Ahead of Claude Opus 4.6 (72.7), behind GPT-5.4 (75.0); Kimi K2.5 scores 63.3.

How to call the Kimi K2.6 API

To call Kimi K2.6, 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-k2.6",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Kimi K2.6 access details

Model IDkimi-k2.6
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 K2.6 API request parameters

Kimi K2.6 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-k2.6 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 K2.6 API pricing

The Kimi K2.6 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
Input7.6Credits~$0.767.22Credits~$0.7226.84Credits~$0.6849.5Credits~$0.9520%
Cached input1.28Credits~$0.1281.216Credits~$0.12161.152Credits~$0.11521.6Credits~$0.1620%
Output32Credits~$3.230.4Credits~$3.0428.8Credits~$2.8840Credits~$420%

Prices are for reference only. View full pricing

Why call Kimi K2.6 API through APIMart

  • 20% below official pricing

    Kimi K2.6 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.128 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Kimi K2.6, 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 K2.6 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 K2.6 API key works for every model in the table; just change the model parameter.

Differences between Moonshot AI models
ComparisonKimi K2.6 CurrentKimi K2.5Kimi K2.7 CodeKimi K3
Best forCoding agents, Long-horizon tool use, Open weightsVisual coding, Image input, Open weightsLong-horizon coding, Agentic tool use, Always thinksLong-horizon coding, Web research, Images and documents
Max input262,144 tokens262,144 tokens262,144 tokens1,000,000 tokens
Max output262,144 tokens262,144 tokens262,144 tokens104,857 tokens
Input price$0.76$0.4112$0.76$2.4
Output price$3.2$0.5551$3.2$12

Kimi K2.6 FAQ

What is Kimi K2.6 built for?

Coding agents and long-horizon tool use. Moonshot describes it as advancing open-source coding, with long-horizon execution and agent swarm capabilities. Typical uses are fixing a failing test in a large repository, running a multi-step research task with search and fetch tools, and reading the numbers off a chart screenshot.

Can I turn off thinking on Kimi K2.6?

Yes. Moonshot’s documentation says thinking is on by default for Kimi K2.6. Turn it off with thinking set to {"type": "disabled"}; with the OpenAI SDK, pass it in extra_body. Reasoning from earlier turns is not kept unless you set thinking.keep to "all".

Which parameters are fixed on Kimi K2.6?

Moonshot’s documentation fixes temperature at 1.0 with thinking on and 0.6 with thinking off, top_p at 0.95, n at 1, and presence and frequency penalty at 0. Passing any other value returns an error, so leave these parameters out of the request. tool_choice accepts auto and none; required returns an error.

Kimi K2.6 is open-weight, so why use the API?

The weights are on Hugging Face under a Modified MIT License, but it is a 1-trillion-parameter mixture-of-experts model, so running it yourself takes a multi-GPU server. Through the API you pay per token and need only an API key; self-hosting makes sense when you need the model inside your own infrastructure.

Does Kimi K2.6 support image input?

Yes. Kimi K2.6 is natively multimodal and accepts images as well as text, and it answers in text. Moonshot also lists video input as experimental and supported only in its official API, so don’t rely on video through APIMart.

How can I try this model online?

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

Which model ID does the Kimi K2.6 API use?

Set model to kimi-k2.6. 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 K2.6?

On APIMart, Kimi K2.6 accepts up to 262,144 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Kimi K2.6 can output up to 262,144 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Kimi K2.6 API cost?

The Kimi K2.6 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.76 per million input tokens and $3.2 per million output tokens. Diamond: $0.684 per million input tokens and $2.88 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.