Skip to main content
All models

xAI / Model reference

Grok Imagine Image

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

See the code
Model IDgrok-imagine-image

What it can do.

celeste.images.generateGenerate images
celeste.images.editTransform an image

Parameters.

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

Grok Imagine Image parameters and constraints
ParameterAccepted values
num_images1 – 10
aspect_ratio
1:13:44:39:1616:92:33:29:19.519.5:99:2020:91:22:1auto
output_format
urlb64_json

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",
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.