Skip to main content
All models

xAI / Model reference

Grok Imagine Image 2.0

xAI model available through the Celeste SDK. Explore its supported operations and parameters.

See the code
Model IDgrok-imagine-image-2.0

What it can do.

celeste.images.editEdit images
celeste.images.generateGenerate images

Parameters.

Supported controls from Celeste’s model registry. Values and availability differ between models.

Grok Imagine Image 2.0 parameters and constraints
ParameterAccepted values
aspect_ratio
1:13:44:39:1616:92:33:29:19.519.5:99:2020:91:22:121:95:2auto
num_images1 – 10
output_format
urlb64_json
quality
1k2k1.5k
reference_imagesImage artifacts

Start with a few lines

Put it to work.

Use your provider credentials. Call the model through the SDK and build around its output.

Generate
import celeste
response = await celeste.images.generate(
model="grok-imagine-image-2.0",
prompt="A quiet observatory on a volcanic coast at dawn." )
image = response.content

This example uses images.generate. Explore the quickstart for installation and authentication.