Back to models
vertex-gemini

Nano Banana (Gemini 2.5 Flash Image)

gemini-2.5-flash-image
vertex-gemini0 contextIn $0.30 · Img $2.50 /M

Gemini 2.5 Flash Image, a.k.a. "Nano Banana," is now generally available. It is a state of the art image generation model with contextual understanding. It is capable of image generation, edits, and multi-turn conversations.

Total Context0
PricingIn $0.30 · Img $2.50 /M

Providers for Nano Banana (Gemini 2.5 Flash Image)

AnyInt routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

vertex-gemini
Total Context0
PricingPriced by generation parameters

Sample code and API for Nano Banana (Gemini 2.5 Flash Image)

AnyInt generates a quickstart from this model's declared API operations, including complete polling flows for asynchronous media.

Create API key

Choose an operation and language that match this model.

Image GenerationAnyInt async media

Create a generation task, then poll its status for artifacts.

/v1/images/generations
# 1. Create a generation task and save its ID.
TASK_ID=$(curl 'https://api.anyint.ai/v1/images/generations' \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -d '{
  "model": "gemini-2.5-flash-image",
  "prompt": "Describe a calm futuristic city at sunrise.",
  "size": "1024x1024"
}' | jq -r '.task.id')

# 2. Poll until task.status is completed or failed.
curl 'https://api.anyint.ai/v1/async-tasks/'"$TASK_ID" \
  -H "Authorization: Bearer <YOUR_API_KEY>"