Skip to content

Gemini 2.5 Flash Image (Nano Banana)

gemini-2.5-flash-image is the fast Gemini image model for prompt-based image generation and editing. nano-banana is an alias for the same model id contract, so it is documented on this page instead of as a separate model.

API surface

OperationEndpointMode
Image generationPOST /v1/images/generationsSync
Image generation taskPOST /v1/async/images/generationsAsync
Image editingPOST /v1/images/editsSync
Image editing taskPOST /v1/async/images/editsAsync

Pricing

Credits

Model idCredits / image
gemini-2.5-flash-image2
nano-banana2

Request fields

This model uses the same OpenAI-compatible image fields as the rest of Pixapi.

FieldTypeRequiredDescription
modelstringYesUse gemini-2.5-flash-image or the alias nano-banana.
promptstringYesDescribe the desired image or edit.
imagefile or file[]Required for editsSend via /v1/images/edits when editing input images.
nnumberNoNumber of images to return.
sizestringNoOutput size such as 1024x1024 or another model-supported size.
response_formatstringNourl or b64_json when supported.

Example

json
{
  "model": "gemini-2.5-flash-image",
  "prompt": "A polished product photo of a ceramic coffee cup",
  "n": 1,
  "size": "1024x1024"
}

For the shared response shape and edit upload example, see the API Reference.