Last Updated: June 2026

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

API Base URL and Endpoints

All kimi api requests use the following base URL:

https://api.moonshot.cn/v1
EndpointMethodDescription
/chat/completionsPOSTCreate chat completions with any Kimi model
/modelsGETList available models
/filesPOSTUpload files for context
/files/{id}GET/DELETERetrieve or delete uploaded files

Supported Models

Model IDDescriptionContextBest For
kimi-k2-5Kimi K2.5 flagship128KComplex reasoning, coding, vision
kimi-k2-5-thinkingK2.5 with chain-of-thought128KMath, logic, multi-step problems
kimi-k2Kimi K2 standard128KCost-effective general tasks
kimi-k2-instructK2 instruction-tuned128KFollowing 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.