model field in the request body.
Try in playground
Test Moonshot Kimi in the Runpod Hub playground.
This endpoint is fully compatible with the OpenAI API. See the OpenAI compatibility examples below.
Model variants
Choose a variant by setting themodel field in the request body (default kimi-k2.6). The endpoint slug stays moonshot-kimi for every variant.
To target a variant other than the default, set the
model field to its ID. For example, to use the flagship model, set "model": "kimi-k3" in the request body (or model="kimi-k3" with the OpenAI SDK).
Request
All parameters are passed within theinput object in the request body.
Response
OpenAI API compatibility
Moonshot Kimi is fully compatible with the OpenAI API format. You can use the OpenAI Python client to interact with this endpoint. You can setmodel to any of the three variant IDs.
Python (OpenAI SDK)
stream=True:
Python (Streaming)