Skip to content
GoogleImageChatgemini-3.1-flash-lite-image

Gemini 3.1 Flash Lite Image

Google's lowest-cost image model, built for scale.

Gemini 3.1 Flash Lite Image is Google's smallest and most cost-effective image model, for generating and editing images at scale where the price of each one matters most.

  • Lowest cost
  • High volume
  • Thumbnails

Model details

Context window
66K tokens
Max output
4K tokens
Input
Text, images
Output
Text, images
Capabilities
Reasoning, 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 3.1 Flash Lite Image pricing.
ResolutionPrice
1K / image$0.0336
/ 1M input tokens$0.25
/ 1M output tokens$1.5
/ 1M image input tokens$0.25

Why teams pick it

  • Lowest price among Google's image models
  • Built for generation and editing at scale
  • Reads reference images as input

Call Gemini 3.1 Flash Lite Image

Gemini 3.1 Flash Lite 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-3.1-flash-lite-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-3.1-flash-lite-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-3.1-flash-lite-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-3.1-flash-lite-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-3.1-flash-lite-image",
  "input": "Hello"
}'

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

More from Google