Skip to main content
All models

OpenAI / Model reference

GPT Image 2

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

See the code
Model IDgpt-image-2

What it can do.

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

Parameters.

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

GPT Image 2 parameters and constraints
ParameterAccepted values
aspect_ratio
1024x10241536x10241024x15362048x20482048x11523840x21602160x3840auto
background
transparentopaqueauto
num_images1 – 10
output_compression0 – 100
output_format
pngjpegwebp
partial_images0 – 3
quality
lowmediumhighauto
safety_tolerance
autolow

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="gpt-image-2",
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.