Grok API pricing & models

xAI · 5 live models

SoleAPI serves 5 xAI models: Grok 4.5, Grok 4.6, Grok 4.7, Grok Imagine Image 2.0, Grok Imagine Video 1.5. Input costs 0.8–0.8 Credits / M tokens (1 Credit = ¥1), up to 94% below list price. Compatible with Anthropic Messages / OpenAI Responses; one API key for all of them, pay as you go.

Live models
5
Lowest input price
0.8Credits / M
Largest context
500Ktokens
Avg. 7-day uptime
98.6%

xAI model pricing

SoleAPI default channel price in Credits (1 Credit = ¥1); struck-through is the list price. Click a model for full pricing, protocols and uptime.

ModelContext · outputInput / MOutput / M7-day uptime
Grok 4.5grok-4.5500K$2.000.894% off$6.002.4—
Grok 4.6grok-4.6500K$2.000.894% off$6.002.498.6%
Grok 4.7grok-4.7500K$2.000.894% off$6.002.4—
Grok Imagine Image 2.0grok-imagine-image-2.0—0.4/ image——
Grok Imagine Video 1.5grok-imagine-video-1.5—0.08/ sec——

Input (prompt) / Output (completion) are per 1M tokens; image and video models show their primary unit price. Uptime comes from SoleAPI probes; a dash means not probed yet.

How to call xAI models

Samples use Grok 4.5; change the model field to call any other model from this vendor.

Anthropic SDK or any Messages-protocol client: point base_url at https://api.soleapi.com and use a SoleAPI key.

curl https://api.soleapi.com/v1/messages \
  -H "x-api-key: $SOLEAPI_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "grok-4.5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Explain prompt caching in one sentence"}]
  }'

xAI model capabilities

Exactly as flagged in the catalog.

CapabilityGrok 4.5Grok 4.6Grok 4.7Grok Imagine Image 2.0Grok Imagine Video 1.5
Vision
Function Calling
Reasoning
Prompt Caching
Response Schema
Audio
Video
File Input
Streaming
Web Search
Realtime
Session
Media
Multipart Form
Binary Response

Compare xAI models

Pricing, context, capabilities and uptime side by side.

FAQ

How much does the Grok API cost on SoleAPI?

xAI models cost 0.8–0.8 Credits / M input tokens, with 1 Credit = ¥1; the cheapest is Grok 4.5. That is up to 94% below list price — see the table above.

How do I call Grok models on SoleAPI with the official SDK?

Point the base URL at https://api.soleapi.com and use a SoleAPI key. Anthropic Messages / OpenAI Responses are supported and request bodies are identical to the official API.

Which Grok model has the largest context window?

Grok 4.5, with 500K tokens. Context and max output for every model are in the pricing table above.

Can I pay for the Grok API with Alipay?

Yes. SoleAPI accepts Alipay top-ups; 1 Credit = ¥1, billed per use with no monthly fee or minimum.

One API key for every xAI model

Free credits on sign-up, pay as you go, no monthly fee.

Get an API Key