Runbase

Command Palette

Search for a command to run...

Gemini

Nano Banana Pro

ID:google/nano-banana-pro

Nano Banana Pro image generation API by Google — Gemini 3 Pro with sharpest text rendering, 4K output, and highest fidelity in the family.

Text to imageImage editingReference images4KText rendering

Overview

Nano Banana Pro image generation API by Google — Gemini 3 Pro with sharpest text rendering, 4K output, and highest fidelity in the family.

Authentication

All API requests require a valid API key passed via the Authorization header using the Bearer scheme.

Quickstart

Credentials

Set the RUNBASE_API_KEY environment variable.

Shell
export RUNBASE_API_KEY=your-api-key

Create a run

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-pro",
    "input": {
      "prompt": "A cinematic product photo of a ceramic lamp"
    }
  }'

Runs

Runs are processed asynchronously. Submit a request, then poll for the result.

Create a run

Shell
curl -s https://runbase.net/api/v1/runs \
  -H "Authorization: Bearer $RUNBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-pro",
    "input": { "prompt": "A cinematic product photo of a ceramic lamp" }
  }'

Get run status

Shell
curl -s https://runbase.net/api/v1/runs/RUN_ID \
  -H "Authorization: Bearer $RUNBASE_API_KEY"

Get result

Poll the status endpoint until status is "succeeded", then read output.urls from the response.

Input Schema

ParameterTypeRequiredDescription
promptstringRequiredPrompt
aspect_ratiostringOptionalAspect ratioOptions: 1:12:33:23:44:34:55:49:1616:921:9auto
resolutionstringOptionalResolutionOptions: 1K2K4K
image_urlsstring[]OptionalReference images

Output Schema

FieldTypeDescription
urlsstring[]Generated output URLs

Errors

The API uses standard HTTP status codes to indicate success or failure.

Status CodeDescription
400Invalid request - missing or malformed parameters
401Authentication failed - missing or invalid API key
402Insufficient credits
403Forbidden - IP not allowed or API key credit limit exceeded
404Run not found
429Rate limit exceeded
500Internal server error