Models / xAI
Model vendor
xAI
xAI makes Grok, a family of frontier reasoning models with access to real-time information.
17Models routed
−4%Average vs list price
1Channels serving xAI
Popular models
Grok 4.6newGrok 4.6 is xAI's flagship model for coding, knowledge work, and STEM, released 2026-08.$1.80 / $5.40in / out · 1M−10%Grok 4.5newGrok 4.5 is xAI's reasoning model for coding, knowledge work, and STEM, released 2026-07.$1.80 / $5.40in / out · 1M−10%Grok Build 0.1Grok Build 0.1 is xAI's coding-focused model, released 2026-05, built for agentic software engineering.$0.90 / $1.80in / out · 1M−10%
xAI models on MirAPI
ModelTypeContextInputOutputCache r / wOff listChannels
Defaultstable$1.80 / $5.40in / out · 1M−10%vs list price
Defaultstable$1.80 / $5.40in / out · 1M−10%vs list price
Defaultstable$0.90 / $1.80in / out · 1M−10%vs list price
Defaultstable$1.13 / $2.25in / out · 1M−10%vs list price
Defaultstable$67.50 / $67.50in / out · 1M—vs list price
Defaultstable$67.50 / $67.50in / out · 1M—vs list price
Defaultstable$67.50 / $67.50in / out · 1M—vs list price
Defaultstable$1.13 / $2.25in / out · 1M—vs list price
Defaultstable$1.13 / $2.25in / out · 1M—vs list price
Defaultstable$1.13 / $2.25in / out · 1M—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="grok-4.6", 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: "grok-4.6", 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": "grok-4.6", "messages": [{"role": "user", "content": "Hello"}] }'
One key covers xAI and 10 more vendors.
1M free tokens to start. No card required.