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

xAI models on MirAPI

ModelTypeContextInputOutputCache r / wOff listChannels
Grok Imagine Video 1.5 LitenewVideo——$0.030per second of output · 720p— / —soon—
Grok 4.7newText500K$2.00$6.00— / —soon—
Grok STT 1.0newTranscription—$27.78—— / —soon—
Grok Imagine Image QualityImage66K——— / —n/a—
Grok Voice TTS 1.0Speech15K$15.00—— / —n/a—
Grok 4.20Text2M$1.25$2.50— / —n/a—
Grok 4.20 Multi-AgentText2M$1.25$2.50— / —n/a—
Browse the full catalog
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 calls
import 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"}],
)

One key covers xAI and 10 more vendors.

1M free tokens to start. No card required.