PiAPIImage GenerationAI generation

Google: Gemini 3 Pro Image (Nano Banana Pro)

piapi.image-gen.gemini-3-pro-image

Generate or edit an image with Gemini 3 Pro Image at 1K, 2K or 4K from a prompt and up to 14 reference images.

Price
$0.181/successAt provider cost
Success rate
100%Last 30 days · 2,779 calls
Latency p50
560 msp95 824 ms
Last verified
Sep 14, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/piapi.image-gen.gemini-3-pro-imagePreview
  • Uses platform quota
  • Asynchronous response
  • Reads public data

Parameters

This tool has no parameters. See provider docs ↗ Provider docs

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/piapi.image-gen.gemini-3-pro-image' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"input":{"prompt":"A clean editorial illustration of a paper airplane.","resolution":"1K","aspect_ratio":"1:1","output_format":"png"},"model":"gemini","task_type":"nano-banana-pro"}'

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.181/success, including the service fee.