gemini-2.5-flash-image-preview

Gemini 2.5 · Per Image

gemini-2.5-flash-image-previewAvailable
ImageImage GenerationVisionTool UsePrompt CacheJSON ModeFastPreviewContext Window: 1049KMax Output Tokens: 66K

Pricing

Official PriceLemonData Price
Price$0.039$0.0273
Cache Read$0.075$0.075

Parameters

Context Window
1.0M tokens
Max Output Tokens
66K tokens

Best For

Image Generation

Creating images, illustrations, and visual content

Vision

Image understanding, document analysis, and visual reasoning

API Code Example

POST/v1beta/models/gemini-2.5-flash-image-preview:generateContent
API Format:
curl "https://api.lemondata.cc/v1beta/models/gemini-2.5-flash-image-preview:generateContent" \
  -H "Content-Type: application/json" \
  -H "x-goog-api-key: sk-xxx" \
  -d '{
    "contents": [
      {"role": "user", "parts": [{"text": "Hello!"}]}
    ]
  }'

FAQ

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

On LemonData, gemini-2.5-flash-image-preview costs $0.0273 Per Image, which is up to 30% off the official pricing.

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

gemini-2.5-flash-image-preview excels at Image, Image Generation, Vision. Access it through LemonData's unified API with a single API key.

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

Get your API key from LemonData, then call https://api.lemondata.cc/v1beta/models/gemini-2.5-flash-image-preview:generateContent using any compatible SDK. See the code examples above for detailed integration.

Related Models