Skip to main content

Base URL

Authentication

Use an API key from the dashboard:

Public Model Scope

The current published public catalog exposes only nano-banana. Use nanobanana as the model value in API requests.

Request Format

  • Use HTTPS.
  • Send JSON bodies with Content-Type: application/json.
  • Include Authorization: Bearer YOUR_API_KEY.

Response Envelope

Success:
Error:

Status Codes

Pagination

List endpoints use: Paginated responses return data.items and data.pagination.

Endpoints

POST /v1/generate

Create a nano-banana image generation or image editing task.

GET /v1/tasks/{id}

Get one task by ID.

GET /v1/tasks

List your generation tasks.

GET /v1/usage

List usage records.