Skip to content
GoogleImageChatgemini-2.5-flash-image

Gemini 2.5 Flash Image

Fast image generation for high-volume work.

Gemini 2.5 Flash Image trades the top end of quality for speed and price — the one to reach for when you are generating a lot of images rather than a few perfect ones.

  • High volume
  • Fast turnaround
  • Thumbnails

Model details

Context window
33K tokens
Max output
33K tokens
Input
Text, images
Output
Text, images
Capabilities
Vision, Streaming
Interfaces
OpenAI-style Image Generation, Image editing, OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses

Pricing

What each generation costs. The Cloakray price is what you are charged — no gateway fee is added on top of it.

Gemini 2.5 Flash Image pricing.
MetricPrice
/ 1M input tokens$0.3
/ 1M output tokens$2.5
/ 1M image output tokens$30

Why teams pick it

  • Quick generations at a low price
  • Handles text and image input
  • Suited to batch and on-demand work

Call Gemini 2.5 Flash Image

Gemini 2.5 Flash Image answers on any of the APIs below — pick the one your code already speaks and just swap in your Cloakray key.

/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/generations \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-2.5-flash-image",
  "prompt": "A quartz crystal on a workbench"
}'
/v1/images/editsImage editing · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/images/edits \
  -H "Authorization: Bearer ckr_..." \
  -F 'model=gemini-2.5-flash-image' \
  -F 'prompt=Make the background blue' \
  -F 'image=@input.png'
/v1/chat/completionsOpenAI-style Chat Completions · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/chat/completions \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-2.5-flash-image",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
/v1/messagesAnthropic-style Messages · @anthropic-ai/sdk SDK or plain HTTP
curl https://api.cloakray.com/v1/messages \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-2.5-flash-image",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
/v1/responsesOpenAI-style Responses · openai SDK or plain HTTP
curl https://api.cloakray.com/v1/responses \
  -H "Authorization: Bearer ckr_..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-2.5-flash-image",
  "input": "Hello"
}'

Conversation compaction is also available at POST /v1/responses/compact.

More from Google