Skip to main content
All models

Black Forest Labs / Model reference

FLUX.2 [pro] Preview

Black Forest Labs model available through the Celeste SDK. Explore its supported operations and parameters.

See the code
Model IDflux-2-pro-preview

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.

FLUX.2 [pro] Preview parameters and constraints
ParameterAccepted values
aspect_ratioWidth × height
output_format
jpegpngwebp
prompt_upsamplingTrue / False
reference_imagesImage artifacts
safety_toleranceInteger
seedInteger

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="flux-2-pro-preview",
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.