Configure OpenAI-compatible clients to use Kimi models on RunAPI.
Model Reference | Skill Repo | All Models
Call the Kimi API through RunAPI with the official OpenAI SDK or any
OpenAI-compatible client. Point clients at https://runapi.ai/v1, send
kimi-k2.6 or kimi-k2.5, and pay through one RunAPI balance. This skill
teaches Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents how to wire Kimi
requests through RunAPI.
The canonical agent file is skills/kimi/SKILL.md.
npx skills add runapi-ai/kimi -gOr paste this prompt to your AI agent:
Install the kimi skill for me:
1. Clone https://github.com/runapi-ai/kimi
2. Copy the skills/kimi/ directory into your
user-level skills directory (e.g. ~/.claude/skills/
for Claude Code, ~/.codex/skills/ for Codex).
3. Verify that SKILL.md is present.
4. Confirm the install path when done.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_RUNAPI_TOKEN",
base_url="https://runapi.ai/v1",
)
response = client.chat.completions.create(
model="kimi-k2.6",
messages=[{"role": "user", "content": "Hello, Kimi!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_RUNAPI_TOKEN",
baseURL: "https://runapi.ai/v1",
});
const response = await client.chat.completions.create({
model: "kimi-k2.5",
messages: [{ role: "user", content: "Hello, Kimi!" }],
});
console.log(response.choices[0].message.content);Get a RunAPI API Key at https://runapi.ai/api_keys.
| Model ID | Notes |
|---|---|
kimi-k2.6 |
Latest Kimi K2 chat workloads |
kimi-k2.5 |
Kimi K2.5 compatibility |
- Kimi API on RunAPI: https://runapi.ai/models/kimi
- Provider page: https://runapi.ai/providers/moonshot-ai
- Browse the full RunAPI catalog: https://runapi.ai/models
- Skill repository: https://github.com/runapi-ai/kimi
- Keep API keys in
OPENAI_API_KEYor your secret manager; never inline them in commits or shell history. - Stream long responses (
stream: true) so the agent can release the terminal/IO loop early. - For pricing, rate-limit, and commercial-usage answers, link to https://runapi.ai/models/kimi rather than this README.
Licensed under the Apache License, Version 2.0.