gemini-3.1-flash-imageImageExamples verified 2026-09-25Gemini 3.1 Flash Image
1K and 2K at the same $0.0672 / image, with up to 14 reference images.
- Official price
- $0.0672/ imageSame price at every tier
- Size tiers
- 1K · 2K
- Images per request
- 1–101K ≤ 10 · 2K ≤ 5
- Reference images
- Up to 14≤ 25 MiB each
- Aspect ratios
- 1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9
- Not supported (returns 400)
- mask、background=transparent
Notes
- Masks and transparent backgrounds aren't supported and return 400.
- The "Gemini Official Direct" group has no /v1/images/edits; pass reference images in image / images on generations.
Pricing
Official price in USD. Actual charge = official price × group multiplier.
- 1K
- $0.0672 / image
- 2K
- $0.0672 / image
- Per token · Input
- $0.50 / 1M tokens
- Per token · Cached input
- $0.05 / 1M tokens
- Per token · Output (incl. images)
- $60 / 1M tokens
Endpoints
- POST
/v1/images/generations - POST
/v1/images/edits - GET
/v1/images/tasks?task_id={task_id}