We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
MoonshotAI: Kimi K2 Thinking
moonshotai/kimi-k2-thinkingTry MoonshotAI: Kimi K2 Thinking now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
MoonshotAI: Kimi K2 Thinking at a glance
- Input price is 33% higher than the median of 434 Text models.
- Context window of 262,144 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Supports reasoning effort control.
- A typical request (1,000 input / 500 output tokens) costs about $0.00648.
About MoonshotAI: Kimi K2 Thinking
Kimi K2 Thinking is a text model from Moonshot AI, identified on api14 as moonshotai/kimi-k2-thinking. It belongs to the K2 series and is described by its provider as Moonshot AI's most advanced open reasoning model to date, extending that series into agentic, long-horizon reasoning. It is built on the trillion-parameter Mixture-of-Experts architecture introduced in the earlier K2 work. The provider release date is 6 November 2025.
The model accepts text input and returns text output, so it is a good fit for language tasks rather than anything involving images or audio. Its context window is 262,144 tokens, which is large enough to hold long documents, extended conversation histories or sizeable codebases in a single request. The maximum output is 98,304 tokens, so responses can themselves be long, which matters for tasks where the model needs room to reason before answering. Because it is a reasoning model, it can produce reasoning content alongside its final answer, and this behaviour can be controlled through the relevant request parameters.
Those capabilities point to a fairly specific set of uses. Long-horizon reasoning and agentic behaviour suit multi-step tasks where the model has to plan, call tools and keep working toward a goal across many turns. The large context window helps with analysing long reports, reviewing large diffs or code files, and summarising or extracting structured information from lengthy inputs. Tool use and structured outputs make it usable inside pipelines that need the model to call functions or return data in a defined shape, and the reasoning output is useful when you want to inspect how an answer was reached rather than only seeing the result.
You call it through api14's OpenAI-compatible API using the model id moonshotai/kimi-k2-thinking, which means existing OpenAI client libraries and request shapes work with only the base URL and key changed. The supported parameters are frequency_penalty, include_reasoning, logprobs, max_tokens, presence_penalty, reasoning, repetition_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools, top_k, top_logprobs and top_p. In practice that covers sampling controls, determinism via seed, stopping conditions, tool and function calling, structured output formats, and options for exposing or tuning the reasoning content. Set max_tokens with the 98,304 output ceiling in mind.
There are cases where another model may fit better. This is a text-only model, so any task that needs image or audio input falls outside its scope. It is also a reasoning model with a very large context window, which is not always what you want for simple, high-volume or latency-sensitive work where a smaller, faster model would do. If your task is short and straightforward, or if you need multimodal input, look elsewhere; if you need long-context reasoning, tool use or structured output, this model is the appropriate choice.
How to call the MoonshotAI: Kimi K2 Thinking API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "moonshotai/kimi-k2-thinking".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "moonshotai/kimi-k2-thinking",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltyinclude_reasoninglogprobsmax_tokenspresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_pSpecifications
- Context length
- 262,144
- Max output
- 98,304
- Input
- text
- Output
- text
Requests on api14 · last 7 days
MoonshotAI: Kimi K2 Thinking: frequently asked questions
- How much does the MoonshotAI: Kimi K2 Thinking API cost?
- MoonshotAI: Kimi K2 Thinking costs Input $2.10 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of MoonshotAI: Kimi K2 Thinking?
- MoonshotAI: Kimi K2 Thinking reads up to 262,144 tokens per request: prompt, history and documents together. It writes up to 98,304 output tokens per response.
- What can MoonshotAI: Kimi K2 Thinking do?
- MoonshotAI: Kimi K2 Thinking accepts text and returns text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call MoonshotAI: Kimi K2 Thinking from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "moonshotai/kimi-k2-thinking". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to MoonshotAI: Kimi K2 Thinking?
- Comparable Text models at a similar price: MoonshotAI: Kimi K2 0905, ByteDance Seed: Seed 2.1 Turbo, SpaceXAI: Grok Build 0.1. Each runs through the same API key, so switching is one string.
MoonshotAI: Kimi K2 Thinking community
New topicThis community has no topics yet. Open the first one about MoonshotAI: Kimi K2 Thinking.