70% off Wan3.0 Standard and 50% off Wan3.0 Prime. Try Wan3.0

Kimi K3.1 Pro API

Flagship open-weight reasoning LLM for agentic coding, 3D creation, and financial research

Get an API key
Input per 1M
$2.00
Cached input per 1M
$0.20
Output per 1M
$10.00
Context window
1M

Call Kimi K3.1 Pro 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.

Request
import 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:[email protected]",
    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.1 Pro

Kimi K3.1 Pro is Moonshot AI's flagship open-weight model, a post-trained successor to Kimi K3 built for coding, agent workflows, and knowledge-intensive work. It pairs a 1M-token context window with always-on reasoning at configurable effort, image understanding, structured outputs, and tool calling, and improves on K3 in coding, 3D modeling, financial analysis, and factual accuracy. It is well suited to coding agents that build full projects and games, scripted 3D and CAD modeling in tools such as Blender, and research assistants that work through financial documents and spreadsheets.

Developer
Moonshot AI
Released
04 Nov, 2026
Input
Text, Image
Context window
1M tokens
Max output
1M tokens
API
OpenAI Chat Completions
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.

Read the docs

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.

Get an API key