Skip to main content
All models

Google / Model reference

Nano Banana 2

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

See the code
Model IDgemini-3.1-flash-image-preview

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.

Nano Banana 2 parameters and constraints
ParameterAccepted values
aspect_ratio
1:12:33:23:44:34:55:49:1616:921:9
quality
1K2K4K
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="gemini-3.1-flash-image-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.