Nano Banana 2 Lite

by Google

Google fast, low-cost image-output Gemini model. Output fixed at 1K resolution.

Parameters
Context Length
33K
Category
image
Available Serverless

Run queries immediately, pay only for usage

See pricing

Pricing unit not published yet

Try this modelView documentation

About this model

Google fast, low-cost image-output Gemini model. Output fixed at 1K resolution.

Capabilities

Providers

One model, several sources. DOS routes to the first that answers and falls back automatically, or you can pin a provider per request.

ProviderServed from
GoogleAvailable
US

Model Details

Provider
Google
Model ID
nano-banana-2-lite
Parameters
Context Length
33K tokens
Category
image

API Usage

Use the DOS API to integrate Nano Banana 2 Lite into your applications. Our API is compatible with OpenAI's client libraries for easy migration.

Model ID

nano-banana-2-lite

Python

python
from dos import DOS

client = DOS()

response = client.chat.completions.create(
    model="nano-banana-2-lite",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ]
)

print(response.choices[0].message.content)

cURL

bash
curl https://api.dos.ai/v1/chat/completions \
  -H "Authorization: Bearer $DOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2-lite",
    "messages": [
      {"role": "user", "content": "Hello, how are you?"}
    ]
  }'

Node.js

javascript
import DOS from 'dos-ai';

const client = new DOS();

const response = await client.chat.completions.create({
  model: "nano-banana-2-lite",
  messages: [
    { role: "user", content: "Hello, how are you?" }
  ]
});

console.log(response.choices[0].message.content);