Skip to main content
POST
/
v1
/
image
/
banana
curl --request POST \
--url https://api.globalaiopc.com/v1/image/banana/ \
--header 'Authorization: Bearer {{key}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-2",
"prompt": "A cute orange cat sitting on a windowsill looking at the scenery outside",
"resolution": "2k",
"size": "16:9",
"image_urls": []
}'
{
    "id": "abc123def456",
    "object": "navobanana",
    "created": 1761635478,
    "model": "navobanana",
    "status": "queued"
}

Create Image Generation Task

Use the Navo Banana API to create high-quality AI image generation tasks with support for multiple models and resolution options.

Authentication

All requests require a Bearer token in the request header:
Authorization: Bearer {{key}}

Request Parameters

model
string
required
Model name, available options:
  • nano-banana-fast
  • nano-banana-pro
  • nano-banana-2
prompt
string
required
Image generation promptExample: "A cute orange cat sitting on a windowsill looking at the scenery outside"
resolution
string
Resolution setting, only supported by nano-banana-2 and nano-banana-proAvailable options:
  • 1k - 1K resolution
  • 2k - 2K resolution
  • 4k - 4K resolution
size
string
Aspect ratio settingAvailable options:
  • 1:1 - Square
  • 16:9 - Landscape widescreen
  • 9:16 - Portrait
  • 4:3 - Standard landscape
  • 3:4 - Standard portrait
  • 3:2 - Classic landscape
  • 2:3 - Classic portrait
  • 5:4 - Slightly wide landscape
  • 4:5 - Slightly tall portrait
  • 21:9 - Ultra-wide
image_urls
array
Array of reference image URLs to guide image generation style

Response Parameters

id
string
Unique identifier for the image generation task, used for subsequent status queries
object
string
Object type, always navobanana
created
integer
Task creation timestamp
model
string
Model name used
status
string
Task status:
  • queued - Queued
  • processing - Processing
error
string
Error message, returned when status is failed

Model Features

nano-banana-fast

Basic model, fast generation, suitable for general use

nano-banana-2

Enhanced model with resolution settings support, higher quality

nano-banana-pro

Professional model, highest quality, supports 4K resolution

Important Notes

Important:
  • Image generation is asynchronous, use the returned id to query task status and results
  • resolution parameter is only effective when using nano-banana-2 or nano-banana-pro models
  • Recommended polling interval is 2-5 seconds, avoid frequent requests
Best Practices:
  1. Use application/json format for requests
  2. Prompts should clearly describe the desired image content and style
  3. Reference images can help guide generation style but are not required
  4. Choose appropriate aspect ratio to match your use case
curl --request POST \
--url https://api.globalaiopc.com/v1/image/banana/ \
--header 'Authorization: Bearer {{key}}' \
--header 'Content-Type: application/json' \
--data '{
"model": "nano-banana-2",
"prompt": "A cute orange cat sitting on a windowsill looking at the scenery outside",
"resolution": "2k",
"size": "16:9",
"image_urls": []
}'
{
    "id": "abc123def456",
    "object": "navobanana",
    "created": 1761635478,
    "model": "navobanana",
    "status": "queued"
}