Nano Banana Pro


Google Nano Banana Pro (Gemini 3.0 Pro Image) supports image editing and can output 4K resolution results. It offers a ready-to-use REST inference API, excellent performance, no cold start, and affordable price.

Nano Banana Pro

Google Nano Banana Pro (Gemini 3.0 Pro Image) supports image editing and can output 4K resolution results. It offers a ready-to-use REST inference API, excellent performance, no cold start, and affordable price.

Base URL

https://api.icreat.ai

Authentication

All API requests must be authenticated with an API Key. You can obtain an API Key from the console.

export ICREAT_API_KEY="your-api-key-here"

HTTP Request Headers

import os

API_KEY = os.environ.get("ICREAT_API_KEY")
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer " + API_KEY,
}

Protect your API Key

Never expose your API Key in client-side code or public repositories. Use environment variables or a backend proxy.

Code Examples

Image and video generation uses a three-step async flow: submit to get task_id, poll status, then fetch results when status is SUCCEEDED.

1. Submit Task

Send a generation request to the submit endpoint.

POST/v1/task/submit/google/gemini-3-pro-image

2. Poll Status

Poll with task_id. Response contains only status.

POST/v1/task/query-status

3. Get Result

Fetch output when the task succeeds.

POST/v1/task/get-result

Input Schema

Submit Task — Input

Total: 4 Required: 3 Optional: 1

promptstringrequired

Text prompt, maximum 8192 characters

imagestring[]

List of reference image URLs. Non-empty indicates image-to-image generation, up to 11 images. Among them, at most 6 high-fidelity object images and at most 5 portrait photos; supported formats: png, jpg, jpeg, webp

aspect_ratiostringrequired

Aspect ratio. Available values: 1:12:33:23:44:34:55:49:1616:921:9。Defaults to the aspect ratio of the first uploaded image

image_sizestringrequired

Resolution tier. Available values: 1K2K4K

Poll Status — Input

Total: 1 Required: 1 Optional: 0

task_idstringrequired

Task ID from the submit endpoint.

Get Result — Input

Total: 1 Required: 1 Optional: 0

task_idstringrequired

Task ID from the submit endpoint.

Output Schema

Submit Task — Output

Total: 1

task_idstring

Async task identifier.

Poll Status — Output

Total: 1

statusstring

Current task status. Fetch results when SUCCEEDED.

Get Result — Output

Top-level array of resource objects.

Total: 3

typestring

Resource type; Image for this model.

urlstring

Preview/access URL.

download_urlstring

Download URL.

LLM Prompt

The Markdown below is an LLM-friendly prompt you can paste into AI assistants (e.g. Cursor, ChatGPT) to help them understand this model's API, call flow, and key parameters. Use Copy for AI or copy from the code block below.

# google/gemini-3-pro-image

> Google Nano Banana Pro (Gemini 3.0 Pro Image) supports image editing and can output 4K resolution results.

## Overview

Use the iCreat three-step async task API: submit a generation request, poll status, then fetch the image URL on success.

## API Info

- **Base URL**:`https://api.icreat.ai`
- **Submit endpoint (POST)**:`/v1/task/submit/google/gemini-3-pro-image`
- **Poll endpoint (POST)**:`/v1/task/query-status`
- **Get result endpoint (POST)**:`/v1/task/get-result`
- **Model ID**:`google/gemini-3-pro-image`
- **Auth**:`Authorization: Bearer ${ICREAT_API_KEY}`

## Call Flow

1. **Submit**: POST submit path with body per Input Notes; response `{ "task_id": "..." }`
2. **Poll**: POST `/v1/task/query-status` with `{ "task_id": "..." }`; response contains **only** `{ "status": "SUBMITTED|SUCCEEDED|FAILED" }`
3. **Get result**: when `status` is `SUCCEEDED`, POST `/v1/task/get-result`; top-level array; read `url` or `download_url` when `type` is `Image`

### Input Notes

- Request body uses top-level flat fields
- Required: `prompt`, `aspect_ratio`, `image_size`
- Optional: `image`
- `prompt` (required): Text prompt, maximum 8192 characters
- `image` (optional): List of reference image URLs. Non-empty indicates image-to-image generation, up to 11 images. Among them, at most 6 high-fidelity object images and at most 5 portrait photos; supported formats: `png`, `jpg`, `jpeg`, `webp`
- `aspect_ratio` (required): Aspect ratio. Available values: `1:1`、`2:3`、`3:2`、`3:4`、`4:3`、`4:5`、`5:4`、`9:16`、`16:9`、`21:9`。Defaults to the aspect ratio of the first uploaded image
- `image_size` (required): Resolution tier. Available values: `1K`、`2K`、`4K`

### Output Notes

- Poll: read `status` only
- Result: top-level `[{ "type": "Image", "url": "...", "download_url": "..." }]`

## Notes

- Use the same `task_id` across all three steps; do not skip polling
- `FAILED` is terminal — check request parameters or reference media