Models / Moonshot AI
Model vendor
Moonshot AI
Moonshot AI builds the Kimi models, including long-context chat models and the open-weight K series for agents.
7Models routed
−26%Average vs list price
1Channels serving Moonshot AI
Moonshot AI models on MirAPI
ModelTypeContextInputOutputCache r / wOff listChannels
Defaultstable$1.50 / $7.50in / out · 1M−26%vs list price
Migration
A drop-in replacement for the OpenAI API
MirAPI accepts the OpenAI wire format, so the official SDKs, LangChain, agent frameworks and your own wrapper all work as they are. Change the base URL and use model IDs as they appear in our catalog:
Endpoints
/v1/chat/completionsChat & tool callsimport os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.chat.completions.create( model="kimi-k3", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const res = await client.chat.completions.create({ model: "kimi-k3", messages: [{ role: "user", content: "Hello" }], });
curl https://api.mirapi.ai/v1/chat/completions \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "kimi-k3", "messages": [{"role": "user", "content": "Hello"}] }'
One key covers Moonshot AI and 10 more vendors.
1M free tokens to start. No card required.