# Nano Banana (Gemini 2.5 Flash Image)

**Price:&#x20;**<mark style="color:$success;">**0.02$**</mark>**&#x20;per generation**

**Generate a image with reference images**

```bash
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**

```bash
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.

<pre class="language-bash" data-title="Retrieve task status with endpoint"><code class="lang-bash"><strong>curl --location 'https://api.unifically.com/nano-banana/status/taskidhere' \
</strong>--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
</code></pre>

{% code title="Generation endpoint example" %}

```json
{
    "code": 200,
    "data": {
        "task_id": "taskidhere"
        "output": {},
        "error": {}
    }
}
```

{% endcode %}

<pre class="language-json" data-title="Status fetch endpoint example"><code class="lang-json">{
    "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": {}
    }
}

<strong>{
</strong>    "code": 400,
    "data": {
        "status": "failed",
        "task_id": "taskidhere",
        "output": {},
        "error": {}
    }
}
</code></pre>
