Skip to main content
Nano Banana 2 Edit is Google’s latest image editing model for combining and editing multiple reference images. It supports up to 14 input images and offers resolution options from 1K to 4K output. For best results, use 1-3 reference images.

Try in playground

Test Nano Banana 2 Edit in the Runpod Hub playground.
Endpointhttps://api.runpod.ai/v2/google-nano-banana-2-edit/runsync
Pricing$0.0875 (1K), $0.13 (2K), $0.175 (4K)
TypeImage editing

Request

All parameters are passed within the input object in the request body.
input.images
array
required
Array of reference image URLs to edit or combine. Supports up to 14 images, but 1-3 images is recommended for best stability.
input.prompt
string
required
Text description of the desired edit or how to combine the images.
input.resolution
string
default:"1k"
Output resolution. Options: 1k, 2k, 4k.
input.aspect_ratio
string
Output aspect ratio (e.g., 1:1, 3:2, 16:9, 9:16, 4:5).
input.output_format
string
default:"png"
Output format. Options: png, jpeg.
input.enable_base64_output
boolean
default:"false"
Return result as base64 string instead of URL.
curl -X POST "https://api.runpod.ai/v2/google-nano-banana-2-edit/runsync" \
  -H "Authorization: Bearer $RUNPOD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "images": [
        "https://example.com/subject.jpg",
        "https://example.com/style-reference.jpg"
      ],
      "prompt": "Apply the artistic style from the second image to the subject in the first image",
      "resolution": "1k",
      "aspect_ratio": "1:1",
      "output_format": "png"
    }
  }'

Response

id
string
Unique identifier for the request.
status
string
Request status. Returns COMPLETED on success, FAILED on error.
delayTime
integer
Time in milliseconds the request spent in queue before processing began.
executionTime
integer
Time in milliseconds the model took to edit the images.
output
object
The generation result containing the image URL and cost.
output.image_url
string
URL of the edited image. This URL expires after 7 days.
output.cost
float
Cost of the generation in USD.
{
  "id": "sync-a1b2c3d4-e5f6-7890-abcd-ef1234567890-u1",
  "status": "COMPLETED",
  "delayTime": 21,
  "executionTime": 6234,
  "output": {
    "image_url": "https://image.runpod.ai/abc123/output.png",
    "cost": 0.0875
  }
}
Image URLs expire after 7 days. Download and store edited images immediately if you need to keep them.

Cost calculation

Nano Banana 2 Edit pricing varies by output resolution:
ResolutionPrice per image
1K$0.0875
2K$0.13
4K$0.175