Nano Banana (Gemini 2.5 Flash Image)

Gemini Nano Banana(Gemini 2.5 Flash Image)

Price: 0.02$ per generation

Aspect Ratio

1:1

2:3

3:2

3:4

4:3

4:5

5:4

9:16

16:9

21:9

Generate a image with reference images

curl --location 'https://api.unifically.com/nano-banana/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "prompt": "Make them hug",
  "aspect_ratio": "9:16", // You can adjust aspect ratio
  "image_urls": [
    "https://upload.wikimedia.org/wikipedia/en/thumb/5/5c/Mario_by_Shigehisa_Nakaue.png/250px-Mario_by_Shigehisa_Nakaue.png",
    "https://upload.wikimedia.org/wikipedia/en/d/d4/Donkey_Kong_character.png"
  ]
}'

Generate a image using only a prompt

curl --location 'https://api.unifically.com/nano-banana/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "prompt": "Create logo of unifically.com in purple gradient theme",
  "aspect_ratio": "9:16", // You can adjust aspect ratio
}'

Replace YOUR_API_KEY with your actual API key to authenticate the request.

Retrieve task status with endpoint
curl --location 'https://api.unifically.com/nano-banana/status/taskidhere' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
Generation endpoint example
{
    "code": 200,
    "data": {
        "task_id": "taskidhere"
        "output": {},
        "error": {}
    }
}
Status fetch endpoint example
{
    "code": 200,
    "data": {
        "status": "completed",
        "task_id": "taskidhere",
        "output": {
            "image_url": "https://files.storagecdn.online/image/file_ekcc9s6h7km_1758389539.png"
        },
        "error": {}
    }
}

{
    "code": 200,
    "data": {
        "status": "processing",
        "task_id": "taskidhere",
        "output": {},
        "error": {}
    }
}

{
    "code": 400,
    "data": {
        "output": {},
        "error": {
            "message": "Generation failed",
            "code": "external_api_error"
        },
        "task_id": "b54d21e3-c481-42b4-a137-f417db54d8a3",
        "status": "failed"
    }
}

Last updated