Choose google/gemma-3-4b-it if…
- you need image input — to read screenshots, charts and scanned pages; OpenAI: gpt-oss-20b does not advertise it
Neither wins outright: google/gemma-3-4b-it is the pick when you need image input, OpenAI: gpt-oss-20b when cost matters at scale.
| Spec | google/gemma-3-4b-it | OpenAI: gpt-oss-20b |
|---|---|---|
| Provider | OpenAI | |
| Input price (per 1M tokens) | $0.05 | $0.02 |
| Output price (per 1M tokens) | $0.10 | $0.09 |
| Blended price (3:1 input/output) | $0.06 | $0.04 |
| Cheaper than … of all models we track | 85% | 88% |
| Context window | 131K tokens (~197 pages) | 131K tokens (~197 pages) |
| Larger context than … of all models | 22% | 22% |
| Max output per response | 16K tokens (~12,300 words) | 33K tokens (~24,600 words) |
| Input types | text, image | text |
| Output types | text | text |
| Free variant | Yes | Yes |
| Listed since | 2025-03-13 | 2025-08-05 |
Monthly cost at list price for five common workloads. Token counts per unit are stated so you can scale them to your own traffic. A workload that does not fit a model's context window is marked rather than priced.
| Workload (per month) | google/gemma-3-4b-it | OpenAI: gpt-oss-20b | Difference |
|---|---|---|---|
| Customer-support chatbot 50,000 conversations — each a 6-turn conversation (1,500 in / 400 out tokens) | $5.75 | $3.15 | OpenAI: gpt-oss-20b saves $2.60 |
| RAG search over documents 20,000 questions — each a question answered from ~8 retrieved passages (6,000 in / 500 out tokens) | $7.00 | $3.06 | OpenAI: gpt-oss-20b saves $3.94 |
| Coding / tool-using agent 2,000 tasks — each a multi-step task with tool calls and file context (60,000 in / 6,000 out tokens) | $7.20 | $3.24 | OpenAI: gpt-oss-20b saves $3.96 |
| Batch summarisation 10,000 documents — each a 6,000-word report summarised to a page (8,000 in / 600 out tokens) | $4.60 | $1.98 | OpenAI: gpt-oss-20b saves $2.62 |
| Long-document analysis 500 documents — each a 150-page contract or codebase read in one pass (100,000 in / 2,000 out tokens) | $2.60 | $0.99 | OpenAI: gpt-oss-20b saves $1.61 |
| Capability | google/gemma-3-4b-it | OpenAI: gpt-oss-20b | What it lets you do |
|---|---|---|---|
| Tool / function calling | — | ✓ Yes | call your APIs and run agent loops |
| Structured output (JSON schema) | ✓ Yes | ✓ Yes | return JSON that validates against your schema |
| Reasoning / thinking mode | — | ✓ Yes | spend extra tokens thinking before answering hard problems |
| Image input | ✓ Yes | — | read screenshots, charts and scanned pages |
| Audio input | — | — | take speech or audio directly |
| File / PDF input | — | — | accept documents without your own parsing step |
| Image output | — | — | generate images, not just text |
| Built-in web search | — | — | answer from live web results |
| Seed (reproducible sampling) | ✓ Yes | ✓ Yes | repeat a generation for tests and evals |
| Log-probabilities | ✓ Yes | ✓ Yes | read token confidence for classification and scoring |
From each model's published parameters and input/output types. “—” means not advertised, not proven absent.
| Date | Model | Input / 1M | Output / 1M |
|---|---|---|---|
| 2026-10-28 | google/gemma-3-4b-it | $0.05 | $0.10 |
| 2026-10-20 | google/gemma-3-4b-it | $0.04 | $0.05 |
| 2026-09-23 | OpenAI: gpt-oss-20b | $0.02 | $0.09 |
| 2026-08-06 | google/gemma-3-4b-it | $0.05 | $0.10 |
| 2026-08-06 | OpenAI: gpt-oss-20b | $0.03 | $0.13 |
| 2026-03-31 | OpenAI: gpt-oss-20b | $0.03 | $0.11 |
Neither wins outright: google/gemma-3-4b-it is the pick when you need image input, OpenAI: gpt-oss-20b when cost matters at scale. In short: google/gemma-3-4b-it when you need image input; OpenAI: gpt-oss-20b when cost matters at scale, you need tool / function calling, you need reasoning / thinking mode, you generate long outputs in one go, you want the newer model.
OpenAI: gpt-oss-20b is cheaper: $0.04 vs $0.06 per 1M tokens at a typical 3:1 input/output mix, 42% less. For 50,000 support conversations a month that is $3.15 against $5.75.
google/gemma-3-4b-it costs $0.05 per 1M input tokens and $0.10 per 1M output tokens; OpenAI: gpt-oss-20b costs $0.02 input and $0.09 output. Output tokens are billed separately, so long answers shift the gap.
Both take 131K tokens per request — roughly 197 pages of text.
Tool calling — google/gemma-3-4b-it: not advertised, OpenAI: gpt-oss-20b: yes. JSON-schema structured output — google/gemma-3-4b-it: yes, OpenAI: gpt-oss-20b: yes.
Only google/gemma-3-4b-it accepts image input; OpenAI: gpt-oss-20b is text-only for input.
google/gemma-3-4b-it has a free variant (google/gemma-3-4b-it:free); OpenAI: gpt-oss-20b has a free variant (openai/gpt-oss-20b:free). Free variants usually carry tighter rate limits.
google/gemma-3-4b-it can write up to 16K tokens (about 12,300 words) per response; OpenAI: gpt-oss-20b up to 33K (about 24,600 words).
google/gemma-3-4b-it was listed on 2025-03-13; OpenAI: gpt-oss-20b on 2025-08-05.
google/gemma-3-4b-it: input price raised 20% ($0.04 → $0.05/1M), output price raised 50% ($0.05 → $0.10/1M) on 2026-10-28 (3 price changes since 2026-03-10). OpenAI: gpt-oss-20b: input price cut 40% ($0.03 → $0.02/1M), output price cut 31% ($0.13 → $0.09/1M) on 2026-09-23 (3 price changes since 2026-03-10).
Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities,...
Full google/gemma-3-4b-it specs →gpt-oss-20b is an open-weight 21B parameter model released by OpenAI under the Apache 2.0 license. It uses a Mixture-of-Experts (MoE) architecture with 3.6B active parameters per forward pass, optimized for...
Full OpenAI: gpt-oss-20b specs →