Kimi API · Ace Data Cloud

Kimi API
Flagship Models for Coding and Agents

Access Kimi K3.1 Pro, K3, K2.6, and K2.7 Code using an OpenAI-compatible format. K3.1 Pro is suited for long-horizon coding, complex reasoning, and visual understanding, with a context window of up to 1M tokens.

🚀 Kimi K3.1 Pro 🧠 Max Reasoning 🔌 OpenAI Compatible 🌐 Chinese and English
🤖
K3.1 Pro
Flagship Model
🧠
3 Levels
K3.1 Pro Reasoning Effort
💰
Token
Pay as You Go
⚡
1M
K3.1 Pro Context

Why use Kimi through Ace Data Cloud?

Kimi K3.1 Pro is designed for long-horizon coding, complex reasoning, and knowledge work. With a 1M-token context window, it can maintain an understanding of large codebases and coordinate tools to complete multi-step tasks.

Ace Data Cloud offers APIs for Kimi K3.1 Pro, K3, and the K2 series in an OpenAI-compatible format. Integrate with an existing OpenAI SDK by changing only the base URL and model name.

Core Capabilities of the Kimi API

A unified interface for complex programming, agents, and knowledge work

🔌

OpenAI-Compatible Format

Call Kimi via /kimi/chat/completions, with support for the OpenAI SDK, streaming responses, and tool calls.

🧠

Adjustable Reasoning Effort

Reasoning is always enabled on K3.1 Pro. You can set reasoning_effort to low, high, or max.

🌐

Optimized for Chinese and English

Excellent native Chinese comprehension and strong English performance. Suitable for Chinese-language use cases, cross-language translation, and multilingual application development.

💻

Top-Tier Coding Capabilities

K3.1 Pro is designed for long-running programming tasks, with the ability to understand large codebases, coordinate terminal tools, and generate, debug, and review code.

⚡

Streaming

Supports SSE streaming, outputting tokens in real time. Set stream: true to receive a streaming response.

📄

Structured Output

Specify the JSON output format via response_format and use JSON Schema to obtain structured API response data.

Python
from openai import OpenAI
client = OpenAI(
  base_url="https://api.acedata.cloud/kimi",
  api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
  model="kimi-k3.1-pro",
  messages=[{"role": "user", "content": "用一句话解释快速排序"}],
  reasoning_effort="low",
  max_tokens=1024,
)
print(response.choices[0].message.content)

JSON Response

The following response excerpt from the existing API guide shows the fields used to read the result. The example model, task ID, and media content come from that historical example; use the actual values returned for this request.

{
  "id": "msg_2D4Btbg1WgvkNE3tCYkR4xGA",
  "object": "chat.completion",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 86,
    "completion_tokens": 206,
    "total_tokens": 292
  }
}

The answer in a standard response is located at choices[0].message.content. See the API documentation for reasoning effort and tool call parameters.

Switch with one line of OpenAI SDK code

Simply change base_url and model to use Kimi in your existing OpenAI project. Configure reasoning parameters according to the model.

1

Get an API Key

Log in to the application list, open General Application, and click the copy button to the right of API KEY. Keep the key on the server and use it to replace YOUR_API_KEY in the example.

Get an Ace Data Cloud API Key
2

Change base_url

Set base_url to https://api.acedata.cloud/kimi

3

Select a Kimi model

Set model to kimi-k3.1-pro; set reasoning_effort according to the task

What can you build with the Kimi API?

From Chinese NLP to long-horizon coding—tackle these tasks with Kimi

💬

Chinese conversational assistant

Build high-quality Chinese customer service, knowledge Q&A, and personal AI assistants with native Chinese understanding far beyond general-purpose models

💻

Code generation and review

K3.1 Pro and K2.7 Code can be used for code generation, debugging, review, and multi-step tool collaboration

🌐

Cross-language translation

Native Chinese-English bilingual capabilities for high-quality translation, localization, and multilingual content generation

🔬

Deep reasoning and analysis

Math problem solving, logical reasoning, data analysis—Thinking mode provides a step-by-step reasoning process

Get started in 3 steps

From registration to sending your first Kimi message in less than 3 minutes

01

Register and get an API Key

Follow the illustration above to copy the API Key for the general-purpose application.

02

Make calls using the OpenAI SDK

Set base_url to Ace Data Cloud and select kimi-k3.1-pro to get started.

03

Integrate and expand

Embed Kimi in your application. The OpenAI-compatible format makes switching between models effortless.

Why choose Ace Data Cloud instead of using the Moonshot API directly?

Comprehensive advantages in format compatibility, global availability, and a unified interface

Comparison Ace Data Cloud Direct Moonshot Access
OpenAI-compatible format ✓ Partially compatible
Global availability ✓ Ready to use ✗ Restricted in some regions
Streaming ✓ ✓
Unified interface for multiple models ✓ GPT / Claude / Gemini / Kimi ✗ Kimi only
Pay as you go ✓ Flexible top-ups ✓
No overseas phone number required to register ✓ ✗ Chinese phone number required
Thinking reasoning model ✓ ✓

Choose the right Kimi model

K3.1 Pro and K3 are designed for complex reasoning and Agent tasks, K2.6 is suited to general-purpose scenarios, and K2.7 Code is designed for programming tasks

K2.6

Efficient and versatile

A general-purpose model that supports reasoning, tool calling, and multimodal input, suitable for everyday conversations and Agent tasks.

  • ✓ 256K context
  • ✓ Toggleable Thinking
  • ✓ Suitable for general conversation and analysis
  • ✓ Supports tool calling
Recommended

Kimi K3.1 Pro

Flagship model

Designed for long-running programming, complex reasoning, visual understanding, and multi-step tool calling. K3 remains available.

  • ✓ 1M Token context
  • ✓ reasoning_effort: low / high / max
  • ✓ Tool calling and streaming output
  • ✓ First choice for complex programming tasks

K2.7 Code

Specialized for coding

A K2 series model designed for code understanding, programming, and multi-step tool calling, with support for a 256K context.

  • ✓ 256K context
  • ✓ Programming and tool calling
  • ✓ Enhanced instruction following
  • ✓ More precise output control
kimi-k3.1-pro kimi-k3 kimi-k2.6 kimi-k2.7-code

Kimi API Pricing

Pay based on token usage. No subscription fees or hidden charges.

Get greater discounts with volume packages

Pay as you go
Token-based billing
Credits Billed per token

Billed based on actual token usage, with separate pricing for input and output

  • ✓ Transparent model-based pricing for K3.1 Pro, K3, K2.6, and K2.7 Code
  • ✓ Reasoning tokens billed based on actual usage
  • ✓ No subscription fees or minimum spend
  • ✓ Input and output priced separately
  • ✓ Streaming responses supported, billed based on actual token usage
View pricing details View API documentation
Enterprise
Custom

Tailored solutions for high-volume teams

  • ✓ Tiered discounts based on usage
  • ✓ Priority support and an account manager
  • ✓ Custom rate limits
  • ✓ SLA guarantee
  • ✓ Private deployment options
Contact sales

Frequently Asked Questions

Everything you need to know about using the Kimi API

What tasks is Kimi K3.1 Pro suited for? ▾

K3.1 Pro is suited for understanding large codebases, long-running programming tasks, complex reasoning, visual understanding, and tool calling. It supports a maximum context of 1,048,576 tokens; refer to the API documentation for specific request limits.

Is the OpenAI SDK supported? ▾

Yes. When using the OpenAI SDK, set base_url to https://api.acedata.cloud/kimi and model to a currently supported model. K3.1 Pro supports tool calling, streaming responses, and reasoning_effort.

How should reasoning_effort be set? ▾

K3.1 Pro supports low, high, or max. K3 only supports max, which is also used when omitted. For K2.7 Code requests, omit thinking and reasoning_effort.

Official references: Thinking Effort, Model Parameter Reference and Chat API.

How does its Chinese language capability compare with GPT/Claude? ▾

The Kimi series has a native advantage in Chinese comprehension and generation, while K3 also excels at English, coding, and multilingual tasks, making it suitable for applications serving users worldwide.

How does pricing work? ▾

Billing is based on token usage, with input and output tokens priced separately and prices varying by model. There are no subscription or monthly fees; pay only for what you use. Refer to the pricing labels on this page for specific prices.

Can I use GPT, Claude, Gemini, and Kimi at the same time? ▾

Yes! Ace Data Cloud provides multiple LLMs, including GPT, Claude, Gemini, and Kimi, through a unified OpenAI-compatible interface. Simply change the model parameter to switch between models. The API format is identical, so there is no need to maintain multiple codebases. The same API Key can access all models.

Get Started with the Kimi API Now

Choose the right Kimi model for your application, with pricing based on the model and actual Token usage.