Nano Banana (Gemini 2.5 Flash Image)

Gemini Nano Banana(Gemini 2.5 Flash Image)

Price: 0.02$ per generation

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",
  "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"
}'

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": {
        "status": "failed",
        "task_id": "taskidhere",
        "output": {},
        "error": {}
    }
}

Last updated