NanoBanana 2

GOOGLE

NanoBanana 2

Commercial use20 credits / job

Try in Playground

Validate prompts and parameters before integration — same model and payload as production.

Request parameters

createTask input fields for the default tab.

FieldTypeRequired
prompttextareaYes
aspect_ratioselect (1:1 | 16:9 | 9:16)No

Output examples

Typical generation previews (actual output varies by prompt).

Text to image

Text to image

Performance benefits

Why teams choose this model for production workloads.

Fast iteration

Validate prompts in Playground before wiring createTask into your app.

Features

Core capabilities for this model on the ModKie gateway.

Fast Gemini image generation

Fast Gemini image generation

NanoBanana 2 balances speed and quality for high-frequency API calls and batch workflows.

Flexible aspect ratios

1:1, 16:9, 9:16 and more for social, product, and widescreen layouts.

Image-to-image

Upload reference images with prompts for style transfer and edits.

Kie-compatible API

Same createTask / recordInfo contract as Kie.ai for easy migration.

Learn more

What you can build

Common developer and product use cases for this API.

Marketing creatives

Generate ad stills, hero images, and social assets from text prompts.

Pricing

Credits apply per successful job only.

NanoBanana 2

20 credits / job

≈ $0.10 USD ($0.01 USD/credit at pack rate)

20 credits per successful job — pay as you go.

ProviderPrice
ModKieBest value20 credits / image
Replicate~$0.14 / image
Fal.ai~$0.15 / image
View all model pricing

Quickstart

Three steps from API key to your first successful job.

  1. 1

    Create an API key

    Sign in and create a key under Settings → API Keys.

  2. 2

    Submit createTask

    POST to /api/v1/jobs/createTask with your model id and input payload.

  3. 3

    Poll recordInfo

    Poll recordInfo until the job completes; download outputs from the response.

Example createTask request

curl -X POST https://modkie.com/api/v1/jobs/createTask \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "nano-banana-2",
  "input": {
    "prompt": "translation of all the text to Hindi.",
    "aspect_ratio": "1:1",
    "resolution": "1K",
    "output_format": "jpg"
  }
}'

Poll GET /api/v1/jobs/recordInfo?taskId=… until state is success or fail. Credits apply only on success.

FAQ

Why ModKie for this model

ModKie is more than API relay — deploy, fine-tune, and register custom endpoints on the same gateway.

Unified gateway

One API key and jobs contract across marketplace and self-hosted models.

Playground

Validate payloads in-browser before shipping to production.

RunPod self-host

Deploy HuggingFace or custom workers and route traffic through ModKie.

Train & register

Fine-tune vision models and register weights back into the gateway.

Deployment help

Work with our team on model landing, integration, and production rollout.

Who it's for

  • DevelopersShip features fast with Playground, docs, and predictable async billing.
  • Enterprise teamsStandardize providers behind one contract, usage dashboard, and webhooks.
  • Fine-tune & own weightsTrain custom models and expose them with the same createTask flow.
Talk to a deployment specialist
NanoBanana 2 API — affordable Gemini image generation