v1

latestOpenAPI 3.0.02026-07-265013.1 KB

Generate Image (Pro)

Submit NanoBanana Pro image generation task using the nano-banana-pro model.

Model Information

The nano-banana-pro model supports:

  • High-quality text-to-image generation
  • Image-to-image transformation
  • Multiple aspect ratios and resolutions
  • Batch image processing (up to 10 input images)
post/api/v1/nanobanana/generate-pro

Request body

promptstring required

A text description of the image you want to generate

imageUrlsstring[]

Input images to transform or use as reference (supports up to 8 images)

resolution'1K' | '2K' | '4K'

Resolution of the generated image

callBackUrlstring uri

Callback URL to receive task completion notifications (required)

aspectRatio'1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9' | '21:9' | 'auto'

Aspect ratio of the generated image

Example request

{
  "prompt": "A cute cat is eating.",
  "imageUrls": [
    ""
  ],
  "resolution": "2K",
  "callBackUrl": "https://example-callback.com",
  "aspectRatio": "16:9"
}

Response

Request successful

codeinteger

Response status code

messagestring

Response message

Example response

{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678"
  }
}