/APIXO Docs

Nano Banana

Fast, affordable text-to-image and image-to-image generation

Nano Banana

Fast and affordable image generation for rapid prototyping and production use.

Model ID
nano-banana
Price
$0.03/image
Speed
10-15 seconds
Type
Image

Capabilities

ModeDescription
text-to-imageGenerate images from text descriptions
image-to-imageTransform or edit existing images

Parameters

For common parameters (request_type, callback_url), see Request Format.

ParameterTypeRequiredDefaultDescription
modestringYes-text-to-image or image-to-image
promptstringYes-Image description (max 5,000 characters)
image_urlsstring[]No-Reference images for image-to-image mode (max 5)
aspect_ratiostringYes1:1Output ratio. Options: 1:1, 9:16, 16:9, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 21:9, auto
output_formatstringNojpegjpeg or png

Examples

Text to Image

curl -X POST https://api.apixo.ai/api/v1/generateTask/nano-banana \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "text-to-image",
      "prompt": "A serene Japanese garden with cherry blossoms, golden hour lighting",
      "aspect_ratio": "16:9"
    }
  }'

Image to Image

curl -X POST https://api.apixo.ai/api/v1/generateTask/nano-banana \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "image-to-image",
      "prompt": "Transform into a watercolor painting style",
      "image_urls": ["https://example.com/photo.jpg"],
      "aspect_ratio": "1:1"
    }
  }'

Check Status

curl "https://api.apixo.ai/api/v1/statusTask/nano-banana?taskId=task_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"

Tips

  • Polling: Wait 5 seconds before first poll, then every 3 seconds
  • Timeout: Set max wait to 2 minutes
  • Prompts: Be specific about style, lighting, and composition for best results

On this page