gemini-3.1-flash-image-preview

Gemini 3 · Per Token

gemini-3.1-flash-image-previewAvailableSync / Async
Text to ImageFastPreviewVisionImage Edit
Context Window: 1MMax Output Tokens: 64K

Pricing

Official PriceLemonData PriceDiscount
Default SpecInput $0.50 / Output $3.00Input $0.175 / Output $1.0565%
Default SpecInput $0.50 / Output $60.00Input $0.175 / Output $21.0065%

Parameters

Context Window
1M tokens
Max Output Tokens
64K tokens

Best For

Vision

Image understanding, document analysis, and visual reasoning

Cost Calculator

1M
0.5M
Estimated Monthly Cost$0.70

API Code Example

POST/v1/images/generations
curl -X POST "https://api.lemondata.cc/v1/images/generations" \
  -H "Authorization: Bearer sk-xxx" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "text-to-image",
  "aspect_ratio": "1:1",
  "resolution": "1k",
  "model": "gemini-3.1-flash-image-preview",
  "prompt": "A minimalist product photo of matte black headphones on a soft blue background."
}'

FAQ

How much does gemini-3.1-flash-image-preview cost?

On LemonData, gemini-3.1-flash-image-preview costs $0.175-$21.00 Per Token, with model-specific platform pricing.

What is gemini-3.1-flash-image-preview best for?

gemini-3.1-flash-image-preview excels at Text to Image, Fast, Preview. Access it through LemonData's unified API with a single API key.

How to use gemini-3.1-flash-image-preview API?

Get your API key from LemonData, then call https://api.lemondata.cc/v1/images/generations using any compatible SDK. See the code examples above for detailed integration.

Related Models