Skip to content
xAIImagegrok-imagine-image

Grok Imagine Image API

Per image
$0.020
Context
2K
No gateway feesPay-as-you-go only

Grok Imagine Image for OpenAI-style Image Generation, Image editing.

Explore Grok Imagine Image for OpenAI-style Image Generation, Image editing through the unified API. Supported interfaces and current availability are shown below.

  • OpenAI-style Image Generation
  • Image editing

Model details

Context window
2K tokens
Max output
4K tokens
Input
Text, images
Output
Images
Capabilities
Vision
Interfaces
OpenAI-style Image Generation, Image editing

Grok Imagine Image API pricing

What each generation costs. The Inferray price is what you are charged — no gateway fee is added on top of it.

Grok Imagine Image pricing.
MetricPrice
/ 1M image input tokens$2000
/ request$0.02

Grok Imagine Image is pay-as-you-go only

Grok Imagine Image is not included in Token Plans. Call it from a pay-as-you-go balance at the list price above, with no gateway fee.

Why teams pick it

  • Grok Imagine Image for OpenAI-style Image Generation, Image editing.

Call Grok Imagine Image

Grok Imagine Image answers on any of the APIs below — pick the one your code already speaks and just swap in your Inferray key.

/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.inferray.com/v1/images/generations \
  -H "Authorization: Bearer inferray_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image",
  "prompt": "A quartz crystal on a workbench"
}'
/v1/images/editsImage editing · openai SDK or plain HTTP
curl https://api.inferray.com/v1/images/edits \
  -H "Authorization: Bearer inferray_..." \
  -F 'model=grok-imagine-image' \
  -F 'prompt=Make the background blue' \
  -F 'image=@input.png'

More from xAI

Alternatives to Grok Imagine Image

Questions about this model

How much does the Grok Imagine Image API cost?
Grok Imagine Image costs from $0.020 per image on Inferray, the list price with no gateway fee on top.
Is there a free tier for Grok Imagine Image?
No. You add credit and pay Grok Imagine Image's list rate for each request — seats, projects, and API keys are free, and pay-as-you-go credit never expires.
Am I charged for failed requests?
No. A request that fails without returning a result is not billed. If a response fails part-way, the tokens already processed before the failure are charged.
Is Grok Imagine Image included in Token Plans?
No. Grok Imagine Image is pay-as-you-go only; Token Plans cover the other models in the catalog.
Is it the real Grok Imagine Image?
Yes. A request for grok-imagine-image is answered by Grok Imagine Image from xAI, billed at its published list price. Inferray never substitutes a different or smaller model.

Prices from the catalog as of November 12, 2026.