Image
Grok Imagine Image 2.0
Grok Imagine Image 2.0 generates images from text and offers a separate reference editing mode.
- Text to image
- Image editing
Sign in to create. Review the credit cost in the studio before running.
Catalog preview for Grok Imagine Image 2.0. Review your own result before publishing.
A starting point.
Test a composition before selecting output quality and resolution for delivery.
Before you publish.
Compare fine detail and lettering at full size; in edits, inspect unintended changes.
Review the quote before running. A failed generation releases its reserved credits. Download the results you want to keep; stored media is retained for 30 days.
Settings and model questionsCheck the available settings and guidance when preparing your input.
Inputs and settings
Provide prompt. Choose quality as low or medium separately from resolution, which supports 1k and 2k; num_images permits 1–4 outputs.
Use aspect_ratio and output_format for delivery. Add image_urls only in editing mode, and describe both the change and the details to keep.
Inputs, all modes and APIModel IDs, current input limits and the API generation workflow.
Supported inputs
These fields come from the current studio form for xai/grok-imagine-image/v2.0/text-to-image. Other modes may require different inputs.
| Input | Type | Requirement | Options and limits |
|---|---|---|---|
prompt | Text | Required | Max. characters: 8000 |
aspect_ratio | Text | Optional | 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2 |
num_images | Whole number | Optional | ≥ 1 · ≤ 4 |
output_format | Text | Optional | jpeg, png, webp |
quality | Text | Optional | low, medium |
resolution | Text | Optional | 1k, 2k |
Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.
Other modes and their inputs
Open the operation you need and check its inputs. Settings from one mode do not automatically apply to another.
Image editingxai/grok-imagine-image/v2.0/edit
Supported inputs
These fields come from the current studio form for xai/grok-imagine-image/v2.0/edit. Other modes may require different inputs.
| Input | Type | Requirement | Options and limits |
|---|---|---|---|
prompt | Text | Required | Max. characters: 8000 |
aspect_ratio | Text | Optional | auto, 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2 |
image_urls | List | Optional | — |
num_images | Whole number | Optional | ≥ 1 · ≤ 4 |
output_format | Text | Optional | jpeg, png, webp |
quality | Text | Optional | low, medium |
resolution | Text | Optional | 1k, 2k |
Check the full model schema for all options and cross-field rules. Request a quote for your selected settings before generating.
Use Grok Imagine Image 2.0 through the API.
Start with this model ID for the endpoint featured on this page:
xai/grok-imagine-image/v2.0/text-to-image
Input requirements belong to this model ID. Check a different mode’s schema separately when switching modes.
Available modes
- text-to-image ·
xai/grok-imagine-image/v2.0/text-to-image - image-to-image ·
xai/grok-imagine-image/v2.0/edit
Check the current model schema for supported inputs and options. Other tasks may use different model IDs.
From quote to result.
Request a credit quote for your input and settings before submitting a generation. A sample output or the price of another model is not a quote for your request.
Follow the generation workflow, then poll the job for its status and result. The API and studio use the same balance.