AI for Production: we'll match your first deposit 100% (x2 credits), up to $1,000 in bonus credits. Limited time.Bonus termsGet API key

LLM API
GoogleImage generationReleased June 30, 2026

Nano Banana 2 Lite

Nano Banana 2 Lite costs $0.0336 per image on LLM API. It generates images from text.

Pricing

Served by Google Vertex AI, the only provider.

Nano Banana 2 Lite prices on LLM API
Image$0.0336/ imageper image
Input$0.25per 1M tokens
Output$30per 1M tokens
Cache read$0.025per 1M tokens
Web search$0.014per search

Specifications

  • ModesGenerate

Call Nano Banana 2 Lite

POST /v1/images/generationsSet LLMAPI_KEY to your LLM API key.Generate docs

import base64
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

result = client.images.generate(
    model="gemini-3.1-flash-lite-image",
    prompt="A lighthouse at dawn, watercolor",
)
with open(f"image.{result.output_format}", "wb") as f:
    f.write(base64.b64decode(result.data[0].b64_json))

More from Google

All Google image models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up