·Quickstart

Quickstart

Get up and running with the NanoBanana API in minutes. No SDK required — it's plain HTTP.

1

Create your account

Sign up at apinanobanana.com and receive 100 free credits — no credit card required. Each credit maps to roughly one standard image generation.

2

Generate an API key

Go to Dashboard → API Keys and click Create new key. Copy and store it somewhere safe — it won't be shown again.

Your key format:

nb_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3

Make your first request

Send a POST request to the generate endpoint. The API responds synchronously — no polling needed.

Tip

The prompt field supports up to 2,000 characters. More detailed prompts produce significantly better results.

4

Handle the response

The response includes both image_url (hosted for 7 days) and image_base64 (for immediate use). Display or save whichever is more convenient.