
Model comparison
DeepSeek V4.1 Flash vs Gemini 3.8 Flash API price, context and cost.
DeepSeek V4.1 Flash (DeepSeek) and Gemini 3.8 Flash (Google) side by side: per-1M prices, cached-input rates, context, output limits and capability flags from the live RouterPlex catalog, with three worked costs. A coding-agent session costs $0.25 on DeepSeek V4.1 Flash and $1.88 on Gemini 3.8 Flash. Both run on one prepaid key with the same OpenAI-compatible request.
Side by side
Catalog fields, one row each.
| Catalog field | DeepSeek V4.1 Flash | Gemini 3.8 Flash |
|---|---|---|
| Provider | DeepSeek | |
| Model ID | deepseek-v4.1-flash | gemini-3.8-flash |
| Input / 1M | $0.18 | $0.75 |
| Output / 1M | $0.73 | $3.75 |
| Cached input / 1M | $0.065 | Billed at input rate |
| Context window | 1M (1,000,000 tokens) | 1M (1,048,576 tokens) |
| Max output | 384K tokens | 66K tokens |
| Image input | Yes | Yes |
| Tool calling | Yes | Yes |
| Reasoning | Yes | Yes |
| Long-prompt tier | None | None |
| Price basis | Vendor list price, 0% markup | Vendor list price, 0% markup |
- DeepSeek V4.1 Flash: DeepSeek prices this model by time of day: $0.15 input / $0.60 output per 1M tokens off-peak, and double that during peak hours (01:00-04:00 and 06:00-10:00 UTC, Monday to Friday). RouterPlex bills a single flat rate in between -- the time-weighted average of the two -- so you are never billed by the clock and never pay the peak rate for off-peak work.
- Gemini 3.8 Flash is on an introductory rate through 31 December 2026, then $1.50 / $7.50 per 1M from 1 January 2027.
- Gemini 3.8 Flash: Google introductory pricing through December 31, 2026; the published rate becomes $1.50 input / $7.50 output per 1M tokens on January 1, 2027.
What the catalog says
DeepSeek V4.1 Flash is 76% cheaper on input ($0.18 against $0.75 per 1M tokens). DeepSeek V4.1 Flash is 81% cheaper on output ($0.73 against $3.75 per 1M tokens). Only DeepSeek V4.1 Flash has a cached-input discount on RouterPlex ($0.065 per 1M); Gemini 3.8 Flash bills cached prompt tokens at its full input rate, which matters on repeated agent prompts. On the coding-agent session below, DeepSeek V4.1 Flash costs $0.25 against $1.88 for Gemini 3.8 Flash. Both accept a 1M context window. DeepSeek V4.1 Flash can return up to 384K tokens per response, against 66K for Gemini 3.8 Flash.
Generated from catalog prices, limits and capability flags. Price does not measure output quality.
Worked cost examples
Same workload, both bills.
Each line multiplies the catalog rate per 1M tokens by the tokens shown. Cached tokens use the route's cached-input rate, or the full input rate when it has no cache discount. Reasoning tokens bill as output, so a model that thinks at length raises the output line beyond these figures.
40 requests of 50K prompt tokens, 80% of each prompt a cache hit, 2.5K output each.
0.4M input x $0.18 + 1.6M cached x $0.065 + 0.1M output x $0.73 = $0.25
0.4M input x $0.75 + 1.6M cached x $0.75 + 0.1M output x $3.75 = $1.88
10,000 conversations of 2K prompt tokens and 500 output tokens, no caching.
20M input x $0.18 + 5M output x $0.73 = $7.25
20M input x $0.75 + 5M output x $3.75 = $33.75
200 requests of 150K prompt tokens and 2K output tokens, no caching.
30M input x $0.18 + 0.4M output x $0.73 = $5.69
30M input x $0.75 + 0.4M output x $3.75 = $24.00
Switching
One key, one line.
Both models sit behind the same RouterPlex key and the same OpenAI-compatible endpoint. Keep the request shape and change the model string. Claude Code and the Anthropic SDK use the same ids on https://api.routerplex.com.
Read the quickstartimport osfrom openai import OpenAIclient = OpenAI(base_url="https://api.routerplex.com/v1",api_key=os.environ["ROUTERPLEX_API_KEY"],)reply = client.chat.completions.create(model="deepseek-v4.1-flash", # switch: "gemini-3.8-flash"messages=[{"role": "user", "content": "Hello!"}],)print(reply.choices[0].message.content)
# DeepSeek V4.1 Flashcurl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "deepseek-v4.1-flash", "messages": [{"role": "user", "content": "Hello!"}]}'# Gemini 3.8 Flash: same request, one field changedcurl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "gemini-3.8-flash", "messages": [{"role": "user", "content": "Hello!"}]}'
Questions
Before you pick one of the two.
01Is DeepSeek V4.1 Flash cheaper than Gemini 3.8 Flash?+
DeepSeek V4.1 Flash costs $0.18 input and $0.73 output per 1M tokens on RouterPlex; Gemini 3.8 Flash costs $0.75 and $3.75. On a coding-agent session (40 requests of 50K prompt tokens, 80% of each prompt a cache hit, 2.5K output each) DeepSeek V4.1 Flash comes to $0.25 and Gemini 3.8 Flash to $1.88, so DeepSeek V4.1 Flash is cheaper for that workload. A chat app month (10,000 conversations of 2K prompt tokens and 500 output tokens, no caching) costs $7.25 on DeepSeek V4.1 Flash and $33.75 on Gemini 3.8 Flash.
02Which has the larger context window, DeepSeek V4.1 Flash or Gemini 3.8 Flash?+
They match: both accept 1M tokens of context on RouterPlex. Maximum output is 384K for DeepSeek V4.1 Flash and 66K for Gemini 3.8 Flash.
03Do DeepSeek V4.1 Flash and Gemini 3.8 Flash support image input and tool calling?+
Per the RouterPlex catalog, DeepSeek V4.1 Flash: image input, tool calling, reasoning. Gemini 3.8 Flash: image input, tool calling, reasoning. These flags come from the labs' published model metadata, not from a quality test.
04How do I switch from DeepSeek V4.1 Flash to Gemini 3.8 Flash?+
Change one string. Both run on the same RouterPlex key and the same OpenAI-compatible endpoint (https://api.routerplex.com/v1), so the request stays identical and only model changes from "deepseek-v4.1-flash" to "gemini-3.8-flash". The same ids work on the Anthropic-compatible /v1/messages endpoint for Claude Code.
05When is Gemini 3.8 Flash worth the higher price?+
Not on price, context or catalog capabilities: DeepSeek V4.1 Flash matches or beats it on each. The reason to pay more would be output you prefer on your own prompts; this page does not rank quality, so run both in the RouterPlex Arena before moving traffic.
Provider pricing
Try both
Both models behind one key.
Top up from $5 with no subscription, then send the same prompt to each.