Skip to content
rawroute

xAI Grok. 6 models below list.

Grok rate card

ModelIDOfficialOpenRouter +5.5%rawrouteSavings
Grok 4.7grok-4.7$2.00 / $6.00$2.11 / $6.33$1.00 / $3.00-50%
Grok Imagine Image Quality1K · per imagegrok-imagine-image-quality$0.05—$0.042-16%
Grok Imagine Image 2.0per imagegrok-imagine-image-2.0$0.04—$0.035-12%
Grok Imagine Video 1.5480p–1080p · per secgrok-imagine-video-1.5$0.08—$0.04–$0.12-50%
Grok STTper hourgrok-stt$0.10—$0.08-20%
Grok TTSper 1K charsgrok-tts$0.015—$0.012-20%

Quick integration

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.rawroute.dev/v1",  # the only line you change
    api_key=os.environ["RAWROUTE_API_KEY"],
)

reply = client.chat.completions.create(
    model="grok-4.7",
    messages=[{"role": "user", "content": "Summarise this contract."}],
)
print(reply.choices[0].message.content)

FAQ

How much cheaper is Grok API on rawroute?

Every xAI model on rawroute is priced below official vendor list rates with a 0% top-up fee (vs. OpenRouter's 5.5% credit fee).

Do xAI models on rawroute support native endpoints?

Yes. Use /v1/chat/completions with official model IDs like grok-4.7.