Models / xAI

Model vendor

xAI

xAI ships the Grok family — frontier reasoning models with real-time knowledge.

12Models routed
−0%Average vs list price
0Channels serving xAI

xAI models on MirAPI

ModelTypeContextInputOutputCache r / wOff listChannels
Grok 4.6newText500K$2.00$6.00 / soon
Grok Imagine Image 2.0newImage66K / soon
Grok 4.5newText500K$2.00$6.00 / soon
Grok Imagine Video 1.5newVideo / soon
Grok STT 1.0newTranscription$100000.00 / soon
Grok Build 0.1newText256K$1.00$2.00 / soon
Grok Imagine Image QualitynewImage66K / soon
Grok Imagine VideonewVideo / soon
Grok Voice TTS 1.0newSpeech15K$15.00 / soon
Grok 4.3Text1M$1.25$2.50 / soon
Grok 4.20Text2M$1.25$2.50 / soon
Grok 4.20 Multi-AgentText2M$1.25$2.50 / soon
Browse the full catalogue
Migration

A drop-in replacement for the OpenAI API

We speak the OpenAI wire format: official SDKs, LangChain, agent frameworks and your own wrapper all work as-is. Change the base URL and write model IDs the catalogue way: grok-4.20 becomes x-ai/grok-4.20.

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="x-ai/grok-4.20",
    messages=[{"role": "user", "content": "Hello"}],
)

One key covers xAI and 10 more vendors.

1M free tokens to start. No card required.