Skip to content

Gemini 3 Pro Image Preview (Nano Banana Pro)

gemini-3-pro-image-preview is the premium Gemini image model for high-quality generation and editing. nano-banana-pro is an alias for the same model id contract. Standard, 2K, and 4K outputs are requested through the size field rather than separate model ids.

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 idResolutionCredits / image
gemini-3-pro-image-preview1K (1024px)8
gemini-3-pro-image-preview-2k2K (2048px)8
gemini-3-pro-image-preview-4k4K (4096px)16

Request fields

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

FieldTypeRequiredDescription
modelstringYesUse gemini-3-pro-image-preview or the alias nano-banana-pro.
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, 2048x1152, 3840x2160, or another model-supported size.
response_formatstringNourl or b64_json when supported.

Example

json
{
  "model": "gemini-3-pro-image-preview",
  "prompt": "A premium product photo with natural lighting and precise composition",
  "n": 1,
  "size": "1024x1024"
}

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