Users outside Mainland China
Global Kimi API
- Platform
- https://platform.kimi.ai
- OpenAI-compatible base URL
- https://api.moonshot.ai/v1
- API key source
- Global Kimi Open Platform console
- Billing surface
- Global account balance and billing surface
Kimi API guide
Global and Mainland China are separate Kimi platform and account routes, so the endpoint, billing surface and applicable terms depend on the route you choose. Then verify the available model ID, request format and response behavior before integration.
Answer first
Kimi provides official API access. Before you integrate it, identify the platform and account route you are using, then verify the endpoint, model ID, billing surface and compatibility against current official documentation.
Official access
Kimi Open Platform
Kimi provides an official developer API, separate from the consumer app and Kimi Code.
Choose first
Account region
Select Global or Mainland China before creating a key or copying an endpoint.
K3 model ID
kimi-k3
Confirm current entitlement with the same key through the official model list endpoint.
API format
OpenAI-compatible
The official service supports the OpenAI Chat Completions request and response format.
What it is
The Kimi API is Moonshot AI's official developer service for calling Kimi models from software. The current documentation presents Kimi K3 as the flagship model and also lists other models, including Kimi K2.6, for different capability and cost needs.
The API product is separate from the consumer Kimi app, Kimi Membership and Kimi Code. A subscription or credential for one product does not automatically provide an Open Platform API balance or key.
Current official product and model documentation
Model availability is account-specific. Use GET /v1/models with the same key before treating any model ID as available to your project.
API key
The key belongs to a specific platform account. Regional keys and balances should not be mixed.
01
Use platform.kimi.ai for the Global route or platform.kimi.com for the Mainland China route. Do not create a key before deciding which account and billing surface you need.
02
Open the API key area inside the matching platform console. Kimi says keys, balances and accounts are isolated between regional platforms.
03
Store it in a secret manager or environment variable. Do not expose it in browser code, a public repository or logs.
04
Call the official model list with the same key, then confirm the model ID, endpoint, account balance and response behavior you will use in production.
Regional routing
These are separate account, credential and billing surfaces. Choose one route consistently from signup through production monitoring.
Users outside Mainland China
Mainland China platform users
Client setup
Kimi documents compatibility with the OpenAI Chat Completions request and response format. That allows the official OpenAI SDK to target Kimi by changing the key, base URL and model.
Compatibility has boundaries
Kimi-specific fields and client behavior can differ. OpenAI-compatible does not mean every OpenAI feature, provider implementation or agent integration behaves identically.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MOONSHOT_API_KEY"],
base_url="https://api.moonshot.ai/v1",
)
response = client.chat.completions.create(
model="kimi-k3",
messages=[
{"role": "user", "content": "Summarize this change."}
],
)Officially documented Global values are shown. Use the matching Mainland China values only with a Mainland China platform key.
Free and paid access
API availability, promotional credit and paid pricing are three different questions.
Kimi documents an official API service, but access still depends on a valid regional account, matching key, available model and usable balance.
Do not assume a permanent Kimi free API tier. Vouchers, trial credits and eligibility can change by account, time and region; verify the current console before planning usage.
The official Open Platform describes pay-as-you-go, token-based billing. Model rates and feature charges can change, so use the current pricing page rather than a copied price table.
Delivery path
The same model name does not prove the same provider, model build, endpoint, region, features, support or commercial terms. Treat the delivery route as a separate decision.
The third-party route below is an example only. Modroam has not independently verified it, and inclusion is not a recommendation.
Provider data handling, service levels and negotiated terms become contractual only when the applicable agreement says so.
Coding and agents
Keep the API product, coding client and credential source distinct before troubleshooting an integration.
Start with the official OpenAI-compatible route and a minimal request. Validate streaming, tools, reasoning fields, errors and usage reporting before adding an agent framework.
Kimi documents a separate coding-product path. Kimi Code keys and Open Platform API keys are not interchangeable, and client-specific model aliases may differ.
An OpenAI-compatible setting is a starting point, not proof of complete support. Test the direct API first, then check tool calls, long-running requests and model-specific fields in the chosen client.
Continue the decision