APIMart
Back to models
Nano Banana Pro 2 model icon
ImageComing soonImage generationRequest workspace

Nano Banana Pro 2 API

Nano Banana Pro 2 API is coming to APIMart. Until it launches, the workspace below uses the current Nano Banana Pro (Gemini 3 Pro Image) parameters, so you can prepare prompts, reference images and settings in advance and run them on launch day.

Generated image 1

Nano Banana Pro 2 API: Get Ready on APIMart

Nano Banana Pro 2 API is on its way to APIMart. Today's Nano Banana Pro, Google's Gemini 3 Pro Image model, already renders legible text in many languages, blends up to 14 reference images and outputs up to 4K. The workspace uses those parameters, so your nano-banana-pro-2 requests are ready when the model goes live.

Nano Banana Pro 2 API Example: Text to Image and Image Editing

These Nano Banana Pro 2 API examples use APIMart's common asynchronous task format and the workspace parameters, which follow Nano Banana Pro and will be synced when Nano Banana Pro 2 launches.

  1. 1

    Authenticate Nano Banana Pro 2 API Requests

    Save your APIMart API key as APIMART_API_KEY. The Nano Banana Pro 2 API examples send Authorization: Bearer <key> for submission and task queries.

  2. 2

    Submit a nano-banana-pro-2 Task

    POST /v1/images/generations with model set to nano-banana-pro-2, your prompt, size and resolution. Add image_urls to edit or combine reference images. Read the task ID from data[0].task_id.

  3. 3

    Get the Nano Banana Pro 2 Result

    Use GET /v1/tasks/{task_id}. For a completed task, read data.result.images[0].url[0]; for a failed task, read data.error.message.

    See the APIMart documentation for APIMart authentication and general API usage.

POST /v1/images/generations
curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-pro-2",
    "prompt": "A minimalist poster for a jazz night, bold title text \"Blue Hour Sessions\", a saxophone silhouette against a deep blue gradient, clean typography",
    "size": "16:9",
    "resolution": "2K",
    "n": 1
  }'

Nano Banana Pro 2 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: nano-banana-pro-2The model value used in this Nano Banana Pro 2 workspace and its examples. The final model ID will be confirmed when the model goes live.
promptstringRequiredDefault: —Image description or editing instruction. Put any text that should appear in the image in quotes.
image_urlsstring[]OptionalDefault: —Up to 14 reference images, as public http(s) URLs or Base64 data URIs (data:image/png;base64,...). Nano Banana Pro accepts JPEG, PNG and WebP up to 30 MB each.
sizestringOptionalDefault: autoAspect ratio: auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 or 21:9.
resolutionstringOptionalDefault: 1K1K, 2K or 4K, in uppercase.
nintegerOptionalDefault: 1Number of images. Only 1 is supported, as with Nano Banana Pro.
nsfw_checkbooleanOptionalDefault: falseSet to true to moderate the prompt and input images before the task is created.