---
title: MoonshotAI: Kimi K2 0711 API | Text Generation | ModelsLab
description: Powerful MoE LLM with 1T total parameters, 32B active, 131K context window; excels in coding, reasoning, agentic tasks, tool use via Muon.
url: https://modelslab.com/models/moonshotai/moonshotai-kimi-k2.md
canonical: https://modelslab.com/models/moonshotai/moonshotai-kimi-k2.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:06:22.754696Z
---

MoonshotAI: Kimi K2 0711
---

 [LLMs.txt](https://modelslab.com/models/open_router/moonshotai-kimi-k2/llms.txt) [.md](https://modelslab.com/models/moonshotai/moonshotai-kimi-k2.md)

moonshotai-kimi-k2 moonshotai Closed Source Model $1.435000 / call

MoonshotAI: Kimi K2 0711
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### MoonshotAI: Kimi K2 0711

moonshotai moonshotai-kimi-k2

Copy model ID

PricingInput $0.57 / 1M tokens

Output $2.30 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[G5](https://modelslab.com/models/together_ai/zai-org-GLM-5.1)[Together AI](https://modelslab.com/models/together_ai)

 [GLM 5.1 FP4

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-5.1)

[XG](https://modelslab.com/models/open_router/x-ai-grok-4.1-fast)[Open Router](https://modelslab.com/models/open_router)

 [xAI: Grok 4.1 Fast

Closed Source Model](https://modelslab.com/models/open_router/x-ai-grok-4.1-fast)

[![GPT-5-nano](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/264a17fd-e3e6-4145-a644-88e3c644638f.webp)](https://modelslab.com/models/openai/gpt-5-nano)[Open Ai](https://modelslab.com/models/openai)

 [GPT-5-nano

Closed Source Model](https://modelslab.com/models/openai/gpt-5-nano)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 1.5B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B-Instruct)

[BS](https://modelslab.com/models/open_router/bytedance-seed-seed-1.6-flash)[Open Router](https://modelslab.com/models/open_router)

 [ByteDance Seed: Seed 1.6 Flash

Closed Source Model](https://modelslab.com/models/open_router/bytedance-seed-seed-1.6-flash)

[![Seed 1.8](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4c050f2a-27fd-40d1-9b1e-7bfc9557709f.webp)](https://modelslab.com/models/byteplus/seed-1.8)[Bytedance](https://modelslab.com/models/byteplus)

 [Seed 1.8

Closed Source Model](https://modelslab.com/models/byteplus/seed-1.8)

[MM](https://modelslab.com/models/open_router/mistralai-mistral-nemo)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mistral Nemo

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-nemo)

[ZG](https://modelslab.com/models/open_router/z-ai-glm-5-turbo)[Open Router](https://modelslab.com/models/open_router)

 [Z.ai: GLM 5 Turbo

Closed Source Model](https://modelslab.com/models/open_router/z-ai-glm-5-turbo)

[KK](https://modelslab.com/models/together_ai/moonshotai-Kimi-K2.5)[Together AI](https://modelslab.com/models/together_ai)

 [Kimi K2.5

Closed Source Model](https://modelslab.com/models/together_ai/moonshotai-Kimi-K2.5)

[QQ](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-122b-a10b)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Qwen: Qwen3.5-122B-A10B

Closed Source Model](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-122b-a10b)

[Q7](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-72B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 72B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-72B)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-3-nano-30b-a3b)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron 3 Nano 30B A3B

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-3-nano-30b-a3b)

[QQ](https://modelslab.com/models/qwen/Qwen-QwQ-32B)[ModelsLab](https://modelslab.com/models/qwen)

 [Qwen QwQ-32B

Closed Source Model](https://modelslab.com/models/qwen/Qwen-QwQ-32B)

[G2](https://modelslab.com/models/together_ai/google-gemma-2b-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 2B It

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-2b-it)

[ML](https://modelslab.com/models/together_ai/meta-llama-Llama-2-7b-chat-hf)[Together AI](https://modelslab.com/models/together_ai)

 [meta-llama/Llama-2-7b-chat-hf

Closed Source Model](https://modelslab.com/models/together_ai/meta-llama-Llama-2-7b-chat-hf)

[GG](https://modelslab.com/models/open_router/google-gemma-3-12b-it-free)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemma 3 12B (free)

Closed Source Model](https://modelslab.com/models/open_router/google-gemma-3-12b-it-free)

[AO](https://modelslab.com/models/open_router/allenai-olmo-2-0325-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [AllenAI: Olmo 2 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/allenai-olmo-2-0325-32b-instruct)

[AC](https://modelslab.com/models/open_router/anthropic-claude-3-haiku)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude 3 Haiku

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-3-haiku)

About MoonshotAI: Kimi K2 0711
---

Kimi K2 Instruct is a large-scale Mixture-of-Experts (MoE) language model developed by Moonshot AI, featuring 1 trillion total parameters with 32 billion active per forward pass. It is optimized for...

### Technical Specifications

Model IDmoonshotai-kimi-k2CategoryLLM ModelsTaskText GenerationPrice$1.435000 per million tokensAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate MoonshotAI: Kimi K2 0711 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "moonshotai-kimi-k2",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/moonshotai/moonshotai-kimi-k2/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

MoonshotAI: Kimi K2 0711 API costs $1.435000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Moonshotai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

MoonshotAI: Kimi K2 0711 FAQ
---

### What is MoonshotAI: Kimi K2 0711?

Kimi K2 Instruct is a large-scale Mixture-of-Experts (MoE) language model developed by Moonshot AI, featuring 1 trillion total parameters with 32 billion active per forward pass. It is optimized for...

### How do I use the MoonshotAI: Kimi K2 0711 API?

You can integrate MoonshotAI: Kimi K2 0711 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "moonshotai-kimi-k2" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does MoonshotAI: Kimi K2 0711 cost?

MoonshotAI: Kimi K2 0711 costs $1.435000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the MoonshotAI: Kimi K2 0711 model ID?

The model ID for MoonshotAI: Kimi K2 0711 is "moonshotai-kimi-k2". Use this ID in your API requests to specify this model.

### Does MoonshotAI: Kimi K2 0711 have a free tier?

Yes, ModelsLab offers a free tier that lets you try MoonshotAI: Kimi K2 0711 and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*