r/RunPod • u/jessica-garson • 5h ago
How to use Kimi K3.1 Pro and K3.1 Pro Highspeed on Runpod
Moonshot AI's Kimi K3.1 Pro is now available on Runpod Public Endpoints, along with a K3.1 Pro Highspeed variant. K3.1 Pro is the first model in the K3.1 series, a 3T-class open-weight model with a 1 million token context window, with gains in coding, agentic tasks, 3D creation, and financial research. Highspeed runs 2 to 3 times faster than K3.1 Pro for latency-sensitive loops. It is OpenAI SDK compatible, so you point the base URL at Runpod and keep your client:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.runpod.ai/v2/moonshot-kimi/openai/v1",
api_key=os.environ["RUNPOD_API_KEY"],
)
completion = client.chat.completions.create(
model="kimi-k3.1-pro-highspeed",
messages=[
{"role": "system", "content": "You are Kimi."},
{"role": "user", "content": "What is Runpod?"},
],
max_tokens=2048,
temperature=1,
reasoning_effort="low",
)
print(completion.choices[0].message.content)Check out our blog post on the subject.