Kimi K3 API
Flagship multimodal reasoning LLM for long-horizon coding, knowledge work, and tool-rich agent workflows
- Input per 1M
- $3.00
- Cached input per 1M
- $0.30
- Output per 1M
- $15.00
- Context window
- 1M
Call Kimi K3 in one request
Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID.
moonshotai:kimi@k3import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RUNWARE_API_KEY"],
base_url="https://api.runware.ai/v1",
)
stream = client.chat.completions.create(
model="moonshotai:kimi@k3",
messages=[
{"role": "user", "content": "What is the capital of France?"},
],
stream=True,
stream_options={"include_usage": True},
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
if chunk.usage:
print("\n", chunk.usage)Usage and cost come back with the response. The stream ends with the request's token counts and its cost, so there is no second call to make.
About Kimi K3
Kimi K3 is Moonshot AI's flagship model for frontier reasoning, software engineering, and knowledge-intensive work. It combines a 1M-token context window with native visual understanding, configurable reasoning effort, structured outputs, tool calling, and strong long-horizon execution across large codebases and multi-step research workflows. It is well suited to demanding coding agents, deep research systems, document-heavy assistants, and other production applications that need sustained reasoning over very large contexts.
- Developer
- Moonshot AI
- Released
- 23 Jul, 2026
- Input
- Text, Image
- Context window
- 1M tokens
- Max output
- 1M tokens
- API
- OpenAI Chat Completions
- Hosting
- Runware hardware
- Data retention
- Zero retention
Already on another provider?
Code that uses the OpenAI SDK moves over with three changes: the base URL, the API key and the model ID. Moving production traffic? We'll help you plan the switch.
More LLMs on Runware
Same key, same endpoint, same per-token billing. Switching models means changing one ID.
Start on demand. Scale on dedicated.
Call your first model in minutes, or tell us about your workload and we will size dedicated capacity for it.