Kimi API — Complete Documentation Guide for Developers
Quick Answer
The Kimi API documentation covers everything developers need
to integrate Moonshot AI's language models. This hub provides references for
the K2.5 and K2 models, authentication setup, endpoint specifications, and
code examples. All endpoints are OpenAI-compatible using the base URL https://api.moonshot.cn/v1.
What is Kimi API Documentation
Kimi API documentation provides comprehensive technical references for Moonshot AI's developer platform. The kimi api uses a REST interface that follows the OpenAI chat completions format, making it familiar to developers who have worked with GPT-4, Claude, or Gemini APIs.
This documentation hub organizes all kimi api docs into focused reference pages covering model specifications, authentication, pricing, and integration patterns. Each page includes code examples, comparison tables, and FAQs optimized for practical developer use.
API Reference Pages
Kimi K2.5 API Reference
Complete reference for the flagship K2.5 model — endpoints, parameters, pricing, and code examples.
Read more →Kimi K2 API Reference
Model reference and integration guide for the cost-effective K2 model with instruct variant.
Read more →API Authentication
How to get, manage, and securely use your Kimi API key for all endpoints.
Read more →Changelog & Updates
Latest Kimi API updates, version changes, new model releases, and deprecation notices.
Read more →API Base URL and Endpoints
All kimi api requests use the following base URL:
https://api.moonshot.cn/v1 | Endpoint | Method | Description |
|---|---|---|
/chat/completions | POST | Create chat completions with any Kimi model |
/models | GET | List available models |
/files | POST | Upload files for context |
/files/{id} | GET/DELETE | Retrieve or delete uploaded files |
Supported Models
| Model ID | Description | Context | Best For |
|---|---|---|---|
kimi-k2-5 | Kimi K2.5 flagship | 128K | Complex reasoning, coding, vision |
kimi-k2-5-thinking | K2.5 with chain-of-thought | 128K | Math, logic, multi-step problems |
kimi-k2 | Kimi K2 standard | 128K | Cost-effective general tasks |
kimi-k2-instruct | K2 instruction-tuned | 128K | Following structured instructions |
Frequently Asked Questions About Kimi API
What is the Kimi API console URL?
The official Kimi API console and developer portal is located at platform.moonshot.cn. There, you can manage billing, check usage graphs, generate API keys, and access official support.
Can I use Kimi API for free?
Yes. Moonshot AI provides developer testing credits upon registration. You can also access Kimi K2.5 for free via Nvidia NIM's API Catalog with generous trial rates.
Which models does Kimi API offer?
Kimi API offers two primary models: Kimi K2.5 (flagship model supporting chat, vision, and long contexts) and Kimi K2 (speed and cost-optimized model supporting chat completions up to 128K context).
How often is Kimi API documentation updated?
kimiapi.raixs.com updates documentation within 48 hours of any official Moonshot AI announcement. Model specs, pricing changes, and new features are tracked and published promptly. Check the Changelog page for the latest updates.
Does Kimi API use the OpenAI format?
Yes. Kimi API is fully OpenAI-compatible. All endpoints follow the same chat completions format. You can use the official OpenAI Python and JavaScript SDKs by simply changing the base URL to api.moonshot.cn/v1.
Summary
This kimi api documentation hub provides the complete reference you need to build with Moonshot AI's language models. Explore the model-specific references above, or jump to Getting Started if you're new to the kimi api platform. For cost details, see our Pricing guide.