Gemini 3.1 Flash Lite

google/gemini-3.1-flash-lite

A chat model with a 1M-token context window, at $0.2625 per million input tokens and $1.575 per million output tokens.

Details

Maker
google
Kind
Chat
Context window
1,000,000 tokens
Max output
65,000 tokens
Input
$0.2625 per million tokens
Cached input
$0.0315 per million tokens, 88% off
Cache write
Same as input
Output
$1.575 per million tokens
Capabilities
Reasoning, tool use, vision, file input, web search
Takes
Text, image, pdf
Returns
Text
Zero data retention
Not on every provider
No training on requests
Yes, on every provider
Released
2026-05-07
Newer model
google/gemini-3.5-flash-lite-batchReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two

Description

Gemini 3.1 Flash Lite outperforms 2.5 Flash Lite on overall quality and lands close to 2.5 Flash performance across key capability areas. It is a workhorse model for high-volume use cases, with improvements across audio input/ASR, RAG snippet ranking, translation, data extraction, and code completion.

Call it

curl
curl https://phantom.codes/v1/chat/completions \
  -H "Authorization: Bearer $PHANTOM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-flash-lite",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.