API / moonshot
moonshot API
Provider: moonshot-ai · Type: official
moonshot is an API by moonshot-ai, served at https://api.moonshot.ai/v1 for official models, exposing Kimi K2.6, Kimi K2.7 Code Highspeed, Kimi K3, Kimi K2.7 Code.
| Key fact | Value |
|---|---|
| Endpoint | https://api.moonshot.ai/v1 |
| Authentication | Bearer API key (MOONSHOT_API_KEY), managed in the platform console |
| Streaming | Yes |
| Function calling | Yes |
| Tool calling | Yes |
| Structured output | Yes |
| Vision | Yes |
| Audio | Unknown |
| Regions | — |
| Cloud providers | Moonshot AI Platform |
| Documentation | https://platform.kimi.ai/docs |
Context limits
| Model | Input limit | Output limit |
|---|---|---|
| kimi-k3 | 1,048,576 | 1,048,576 |
| kimi-k2.7-code | 262,144 | — |
| kimi-k2.7-code-highspeed | 262,144 | — |
| kimi-k2.6 | 262,144 | — |
The Moonshot AI (Kimi) API serves the Kimi K-series at api.moonshot.ai. It exposes OpenAI-compatible
Chat Completions (/v1/chat/completions), OpenAI Responses (/v1/responses) and an Anthropic-compatible
Messages endpoint (/anthropic/v1/messages), plus files, batches, tokenizer and web-search tools.
Streaming is SSE with separate reasoning_content and content deltas. kimi-k3 uses top-level reasoning_effort (low/high/max, default max); K2.x models use the thinking parameter. JSON mode / structured output, automatic context caching and file upload (text/image/video) are supported. Temperature and top_p are fixed for K3 and K2.x. Serving regions are not stated in the fetched docs.
Provider
Models served
Pricing
Sources
Data interpretation
| Field | Value | Evidence type |
|---|---|---|
| Endpoint | https://api.moonshot.ai/v1 | Official |
| Authentication | Bearer API key (MOONSHOT_API_KEY), managed in the platform console | Official |
| Capabilities | Streaming, Function calling, Tool calling, Structured output, Vision | Official |
| Models served | 4 models in the database | China AI Hub analysis |
Evidence types: Official = vendor documentation or official pages. China AI Hub analysis = derived from the database itself. See the sourcing policy.
What is the moonshot API endpoint?
The moonshot API endpoint is https://api.moonshot.ai/v1.
How do you authenticate with the moonshot API?
Bearer API key (MOONSHOT_API_KEY), managed in the platform console.
What are the context limits of the moonshot API?
kimi-k3: 1,048,576 in / 1,048,576 out; kimi-k2.7-code: 262,144 in / — out; kimi-k2.7-code-highspeed: 262,144 in / — out; kimi-k2.6: 262,144 in / — out.
Does the moonshot API support function calling?
Yes — the moonshot API supports function calling.
Where does China AI Hub get its moonshot API data?
From 2 sources, last verified 2026-09-20.