Grok Imagine Image 2.0 API pricing and setup

Grok Imagine Image 2.0 (grok-imagine-image-2.0) is a xAI model. It is available through the relay.fast API with one relay.fast key and pay-as-you-go billing.

Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.

List price$1.2 per image
relay.fast price from$0.04 per image
Lower than the official price byup to 96%
Endpoints/v1/images/generations

Example request

Keep the key in the RELAY_FAST_API_KEY environment variable.

curl https://relay.fast/v1/images/generations \
  -H "Authorization: Bearer $RELAY_FAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-imagine-image-2.0","prompt":"A lighthouse at dawn, watercolor"}'

Frequently asked questions

How much does the Grok Imagine Image 2.0 API cost?

On 2026-11-05, Grok Imagine Image 2.0 costs from $0.04 per image on relay.fast, against a list price of $1.2. The price depends on the source your request uses and can change; https://relay.fast/pricing/grok-imagine-image-2.0 shows the current value.

Which API endpoint does Grok Imagine Image 2.0 use?

Call /v1/images/generations with a relay.fast API key. OpenAI-compatible SDKs use the base URL https://relay.fast/v1.

Do I need a xAI account to use Grok Imagine Image 2.0?

No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with xAI.

All model prices · API reference · Service status