Skip to content
GoogleChatgemini-3.1-flash-lite

Gemini 3.1 Flash Lite

Ultra-lightweight Gemini for cost-sensitive volume.

Gemini 3.1 Flash Lite is Google's ultra-lightweight model, made for high-volume, cost-sensitive work where a fast answer at the lowest price matters more than depth.

  • High volume
  • Low cost
  • Classification

Model details

Context window
1.0M tokens
Max output
66K tokens
Input
Text, images, audio, documents
Output
Text
Capabilities
Reasoning, Vision, Tool calling, Streaming, JSON output
Interfaces
OpenAI-style Chat Completions, Anthropic-style Messages, OpenAI-style Responses

Pricing

Prices use the units shown below. No gateway fees. Usage, size and model options may affect the total.

Gemini 3.1 Flash Lite pricing.
MetricPrice
/ 1M input tokens$0.25
/ 1M output tokens$1.5
/ 1M cached input tokens$0.025
/ 1M audio input tokens$0.5
/ 1M cached audio input tokens$0.05
/ 1M cache write tokens (5 min)$0.08333
/ web search$0.014

Why teams pick it

  • Ultra-lightweight and cheap per token
  • Built for high-volume, cost-sensitive tasks
  • 1M-token context with vision and document input

Call Gemini 3.1 Flash Lite

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

/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",
  "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",
  "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",
  "input": "Hello"
}'

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

More from Google