Nano Banana AI Image Editing Model

Gemini 2.5 Flash Image is optimized for image understanding and generation, offering a balance of price and performance with fast and efficient image generation and editing capabilities.

gemini-2.5-flash-image-preview API OpenAI-compatible

Integrate Nano Banana into your workflow via Lumenfall’s OpenAI-compatible API to perform scalable text-to-image generation and complex image editing tasks.

Base URL
https://api.lumenfall.ai/openai/v1
Model
gemini-2.5-flash-image

Text to Image Generate

Create images from text descriptions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/generations \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-2.5-flash-image",
    "prompt": "A serene mountain landscape at sunset",
    "size": "1024x1024"
  }'
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }

Image Editing Edit

Transform existing images with text instructions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/edits \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -F "model=gemini-2.5-flash-image" \
  -F "[email protected]" \
  -F "prompt=Add a starry night sky to this image" \
  -F "size=1024x1024"
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }