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 0711

moonshotai/kimi-k2
TextInput: textTools131KAdded Jul 11, 2025

Try MoonshotAI: Kimi K2 0711 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

MoonshotAI: Kimi K2 0711 at a glance

  • Input price is 27% higher than the median of 434 Text models.
  • Context window of 131,072 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • A typical request (1,000 input / 500 output tokens) costs about $0.00602.

About MoonshotAI: Kimi K2 0711

Kimi K2 0711 is a text model from Moonshot AI, identified on api14 as moonshotai/kimi-k2. It is a large-scale Mixture-of-Experts (MoE) language model with 1 trillion total parameters and 32 billion active per forward pass, which means only a fraction of the network is engaged for each token it generates. The provider release date is 2025-07-11, and the model's knowledge cutoff is 2024-12-31, so anything after that date is outside what it learned during training.

The model works with text in and text out. It accepts a context window of 131,072 tokens and can produce up to 98,304 tokens in a single response, which is a large output budget relative to most chat models. That combination suits workloads where the input is long (documentation, transcripts, codebases) and the expected answer is also long, such as a full report or a substantial refactor rather than a one line reply.

Because it supports tool calling, Kimi K2 fits agent style workflows where the model decides when to invoke a function and what arguments to pass. Typical uses include multi step assistants that query internal APIs, retrieval augmented generation over large document sets, long form summarization and drafting, and code generation or review where the model needs to hold a lot of surrounding context. The high output ceiling also makes it reasonable for tasks that would otherwise need to be split across several calls.

You call it through api14's OpenAI-compatible API using the model id "moonshotai/kimi-k2", so existing OpenAI SDKs and clients work with only the base URL and key changed. The request parameters it supports are frequency_penalty, max_tokens, presence_penalty, repetition_penalty, seed, stop, temperature, tool_choice, tools, top_k and top_p. The presence of seed allows more reproducible sampling, and tools plus tool_choice let you define function schemas and control whether the model must call one.

Keep the limits in mind when choosing it. Input and output are text only, so image or audio tasks need a different model, and the 131,072 token context and 98,304 token output cap bound how much can be handled in one request. The knowledge cutoff of 2024-12-31 means recent events are not covered unless you supply them in the prompt or through tools. For short, simple requests, a smaller model may be a better fit.

How to call the MoonshotAI: Kimi K2 0711 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "moonshotai/kimi-k2".
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",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltymax_tokenspresence_penaltyrepetition_penaltyseedstoptemperaturetool_choicetoolstop_ktop_p

Specifications

Context length
131,072
Max output
98,304
Input
text
Output
text
Knowledge cutoff
2024-12-31

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

MoonshotAI: Kimi K2 0711: frequently asked questions

How much does the MoonshotAI: Kimi K2 0711 API cost?
MoonshotAI: Kimi K2 0711 costs Input $1.99 / 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 0711?
MoonshotAI: Kimi K2 0711 reads up to 131,072 tokens per request: prompt, history and documents together. It writes up to 98,304 output tokens per response.
What can MoonshotAI: Kimi K2 0711 do?
MoonshotAI: Kimi K2 0711 accepts text and returns text. It supports tool calling.
How do I call MoonshotAI: Kimi K2 0711 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "moonshotai/kimi-k2". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to MoonshotAI: Kimi K2 0711?
Comparable Text models at a similar price: DeepSeek: DeepSeek V4 Pro 0423, Moondream: Moondream 3 Preview, Moondream: Moondream 3.1. Each runs through the same API key, so switching is one string.

MoonshotAI: Kimi K2 0711 community

New topic

This community has no topics yet. Open the first one about MoonshotAI: Kimi K2 0711.