inference-providers

Moonshot Kimi

first_party

DocsConsolePricing

Getting credentials

api-key

api_key via header (header Authorization: Bearer)

Environment: MOONSHOT_API_KEY

Create keys at the Kimi Open Platform (intl) or platform.kimi.com (CN, Chinese phone required). Keys are region-bound: .ai and .cn are not interchangeable.

Credentials docs

Endpoints

IDURLProtocolAuth
chat-completionshttps://api.moonshot.ai/v1/chat/completionsopenai-chatany
anthropichttps://api.moonshot.ai/anthropicanthropic-messagesany

API surfaces

textstreamingfilesbatch

Quirks

Models offered

ModelWire IDEndpointStatusReasoning
moonshot/kimi-k2-5kimi-k2.5chat-completionsdeprecatedtoggle · default on · returns reasoning_content
moonshot/kimi-k2-6kimi-k2.6chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-7-codekimi-k2.7-codeanthropicgatoggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-7-codekimi-k2.7-code-highspeedchat-completionsgatoggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k2-7-codekimi-k2.7-codechat-completionsgatoggle · default on · mandatory · returns reasoning_content · round-trips reasoning_content
moonshot/kimi-k3kimi-k3chat-completionsgaeffort · default on · mandatory · returns reasoning_content · round-trips reasoning_content