APIMart
Back to all models

Kimi K2.5 API

Moonshot AIModel ID kimi-k2.5Text model

Use Kimi K2.5 to turn a UI screenshot into front-end code, pull the figures out of a scanned table, or run a research task that calls search tools.

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

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

Try Kimi K2.5 with your own material

Front-end code from a UI design

Send Kimi K2.5 a screenshot or mockup and ask for the component in your framework, with the layout, spacing and states it shows. Render the result next to the design and fix the differences before it ships.

Example: Build this pricing card from the mockup

Material

Mockup (description)
White card, plan name “Team”, price “$24 / month”, three feature lines with check icons, full-width blue “Start trial” button; the button turns darker blue on hover.

PromptWrite a React component for the pricing card in this screenshot, using Tailwind CSS. Match the layout and include the hover state.

Sample answer · written by hand to show the reasoning

A PricingCard component with a rounded white container, the plan name and price as heading and large text, a list of three items each with a check icon, and a full-width button using bg-blue-600 and hover:bg-blue-700. Plan name, price and features are props so the same card serves other plans. Compare it with the mockup at the target screen width.

About the Kimi K2.5 API

  • Natively multimodal

    Kimi K2.5 was pretrained on mixed visual and text tokens, so it reads screenshots, charts and scanned documents, and can write code from a UI design.

  • 256K context, thinking or instant

    The context window is 256K tokens. Use thinking mode for hard, multi-step problems and instant mode for faster, shorter answers.

  • Still served on APIMart

    Moonshot retired kimi-k2.5 on its own platform in August 2026. APIMart still serves it, so existing integrations keep working while you evaluate Kimi K3.

  • Kimi K2.5 API key and access

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

Kimi K2.5 official benchmark results

Selected results Moonshot AI published at launch.

  • HLE-Full (with tools)

    50.2

    Hard expert questions answered with tools. Ahead of Gemini 3 Pro (45.8), GPT-5.2 (45.5) and Claude 4.5 Opus (43.2).

  • SWE-Bench Verified

    76.8

    Fixing real issues in code repositories. Ahead of Gemini 3 Pro (76.2), behind GPT-5.2 (80.0) and Claude 4.5 Opus (80.9).

  • SWE-Bench Multilingual

    73.0

    Repository issues across programming languages. Ahead of GPT-5.2 (72.0) and Gemini 3 Pro (65.0), behind Claude 4.5 Opus (77.5).

  • MMMU-Pro

    78.5

    Expert-level questions about images. Ahead of Claude 4.5 Opus (74.0), behind GPT-5.2 (79.5) and Gemini 3 Pro (81.0).

  • OCRBench

    92.3

    Reading text in images. Ahead of Gemini 3 Pro (90.3), Claude 4.5 Opus (86.5) and GPT-5.2 (80.7).

  • OmniDocBench 1.5

    88.8

    Parsing complex documents. Close to Gemini 3 Pro (88.5), ahead of Claude 4.5 Opus (87.7) and GPT-5.2 (85.7).

How to call the Kimi K2.5 API

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

Kimi K2.5 access details

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

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

The Kimi K2.5 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
Input4.112Credits~$0.41123.9064Credits~$0.39063.7008Credits~$0.37015.14Credits~$0.51420%
Output5.5512Credits~$0.55515.2736Credits~$0.52744.9961Credits~$0.49966.939Credits~$0.693920%

Prices are for reference only. View full pricing

Why call Kimi K2.5 API through APIMart

  • 20% below official pricing

    Kimi K2.5 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Moonshot AI's official prices.

    See membership prices
  • One API key for 500+ models

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

Differences between Moonshot AI models
ComparisonKimi K2.5 CurrentKimi K2.6Kimi K2.7 CodeKimi K3
Best forVisual coding, Image input, Open weightsCoding agents, Long-horizon tool use, 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.4112$0.76$0.76$2.4
Output price$0.5551$3.2$3.2$12

Kimi K2.5 FAQ

Is Kimi K2.5 still available?

Yes, on APIMart. Moonshot retired kimi-k2.5 on its own Open Platform in August 2026 and recommends Kimi K3, but APIMart still serves kimi-k2.5 under the same model ID, so existing integrations keep working. For a new project, run your prompts on Kimi K3 as well; it uses the same APIMart API key.

How is Kimi K2.5 different from Kimi K2.6?

Kimi K2.6 is the newer K2 model with the same 1-trillion-parameter design. Moonshot’s K2.6 model card puts K2.5 behind it on agentic coding, for example SWE-Bench Pro 50.7 vs 58.6 and Terminal-Bench 2.0 50.8 vs 66.7. If K2.5 already handles your task, compare quality and the prices on both pages before switching.

Can I turn off thinking on Kimi K2.5?

Kimi K2.5 has a thinking mode and an instant mode. Moonshot’s model card switches to instant mode with thinking set to {"type": "disabled"}, passed in extra_body with the OpenAI SDK, and recommends temperature 1.0 for thinking, 0.6 for instant and top_p 0.95. Send a short test request on APIMart and check whether reasoning_content still comes back.

Does Kimi K2.5 support image input?

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

Kimi K2.5 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 the model has to run inside your own infrastructure.

How can I try this model online?

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

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

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

On APIMart, Kimi K2.5 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.5 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.5 API cost?

The Kimi K2.5 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.4112 per million input tokens and $0.5551 per million output tokens. Diamond: $0.3701 per million input tokens and $0.4996 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.