xAI / xai/grok-imagine-image-2.0

Grok Imagine Image 2.0 - access through LLMTR

Generates images from text and edits with up to five source images. The quality field takes low, medium, or auto, and the price depends on quality and resolution (1k, 2k). auto is the default and currently runs low for generation and medium for edits.

Technical specifications

Canonical IDxai/grok-imagine-image-2.0
ProviderxAI
Context windowNot available
OperationsIMAGES_GENERATIONS
Modalitiesimage, text

Pricing

An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.

OperationMetricUnitPrice
IMAGES_GENERATIONSINPUT_IMAGEPER_IMAGE$0.010000
IMAGES_GENERATIONSOUTPUT_IMAGEPER_IMAGE$0.040000
IMAGES_GENERATIONSOUTPUT_IMAGEPER_IMAGE$0.060000
IMAGES_GENERATIONSOUTPUT_IMAGEPER_IMAGE$0.060000
IMAGES_GENERATIONSOUTPUT_IMAGEPER_IMAGE$0.080000

Example usage

With existing OpenAI SDK flows, change only the base URL and model identifier.

curl https://llmtr.com/v1/chat/completions   -H "Authorization: Bearer llmtr-your_key"   -H "Content-Type: application/json"   -d '{"model":"xai/grok-imagine-image-2.0","messages":[{"role":"user","content":"Hello"}]}'

Guides about this model

Related models