Gemini 3.1 Flash (Image)
Gemini 3.1 Flash (Image) is served by 1 provider that kRouter can route to, with a 1.0M-token context window and pricing from $0.50 per 1M input tokens. Routing through kRouter means any OpenAI-compatible tool can reach it, with failover to another model if the provider is rate limited.
How to route to Gemini 3.1 Flash (Image)
| Provider | Route as |
|---|---|
| Antigravity | ag/gemini-3.1-flash-image |
What Gemini 3.1 Flash (Image) is suited for
A 1.0M window is large enough to hold a substantial part of a codebase in one turn, so it suits whole-repo refactors and long agent sessions where the history keeps growing. It answers directly rather than reasoning at length, which keeps latency and output cost down on routine edits. Tool and function calling are supported, so it can drive an agent loop. It accepts images, so screenshots and diagrams can go straight into the prompt. Cached input is billed at $0.03 against $0.50 fresh, which is the difference that matters most for agent work — the same context is resent on every turn.
Specs
- Context window
- 1.0M
- Max output
- 64K
- Input / 1M
- $0.50
- Output / 1M
- $3.00
- Image input
- Tool / function calling
- Image output
Cheaper alternatives to Gemini 3.1 Flash (Image)
Comparable capabilities at a lower rate. With a kRouter combo you can send routine turns to one of these and reserve Gemini 3.1 Flash (Image) for the work that actually needs it.
- Claude Haiku 4.5$0.50 in · $2.50 out per 1M
- Qwen 3.5 Plus$0.50 in · $2.00 out per 1M
- Grok 3$0.50 in · $2.00 out per 1M
- Grok 4$0.50 in · $2.00 out per 1M
Gemini 3.1 Flash (Image) FAQ
How much does Gemini 3.1 Flash (Image) cost?
Gemini 3.1 Flash (Image) is $0.50 per 1M input tokens and $3.00 per 1M output tokens. Cached input is $0.03, which matters a lot for agent work that resends the same context each turn.
Which providers serve Gemini 3.1 Flash (Image)?
Antigravity serves it. kRouter routes to it as ag/gemini-3.1-flash-image.
What is Gemini 3.1 Flash (Image)'s context window?
1.0M tokens, with up to 64K tokens of output. kRouter publishes this on /v1/models as context_length, so clients read the real number instead of guessing from the model name.
Is there a cheaper alternative to Gemini 3.1 Flash (Image)?
Yes — Claude Haiku 4.5 ($0.50/1M in), Qwen 3.5 Plus ($0.50/1M in), Grok 3 ($0.50/1M in), Grok 4 ($0.50/1M in) are cheaper with comparable capabilities. A kRouter combo can send routine turns to one of those and keep Gemini 3.1 Flash (Image) for the work that needs it.
Route to Gemini 3.1 Flash (Image) from any tool
kRouter runs locally and gives Claude Code, Cursor, Codex and the rest one endpoint that reaches every provider above — with automatic failover. Free and MIT-licensed.
Install kRouter