Skip to main content
Generate and edit images using Grok Imagine 2.0, the quality-focused Grok image model. Choose a quality tier and output resolution, and edit with up to 5 reference images. Every task produces exactly one image. More on this model: Grok Imagine 2.0 Image API page.
Select this model explicitly for quality. For faster, cheaper generation, use Grok Imagine 1.0 Image (xai/grok-imagine-1.0-image).

Model

Two channels, chosen by enable_nsfw

A request with enable_nsfw: true that also sets quality, resolution, or a wide aspect ratio is rejected with a 422 before any task is created.

Pricing

Current prices for this model are on the pricing page; the playground also quotes the exact price of a request before you submit it.

Parameters

Unknown request fields are rejected rather than ignored. Providing image_urls activates editing but does not change the selected model.
Before 18 October 2026 this model ran on the grok.com channel only and enable_nsfw defaulted to true. It now defaults to false: a request that omits the field runs on the xAI API and returns safe-for-work output. Set enable_nsfw: true explicitly to keep the previous behaviour.

Example requests

Text to image, medium quality at 2k

Image editing

NSFW on the grok.com channel

Response

Volume discounts are available for almost all models. Reach out at contact@unifically.com to discuss custom pricing.