Back to models
vertex-gemini

Google: Gemini 3.1 Flash-Lite Image

gemini-3.1-flash-lite-image
vertex-gemini0 contextPriced by generation parameters

Google Gemini 3.1 Flash-Lite Image is a cost-effective, fast image generation model providing high-speed image synthesis and multimodal edits.

Total Context0
PricingUsage based

Providers for Google: Gemini 3.1 Flash-Lite 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 Google: Gemini 3.1 Flash-Lite 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-3.1-flash-lite-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>"