Model comparison

vs

Gemma 4 31B vs GPT-OSS 120B

Google AI against OpenAI, compared on listed price, real workload cost, context and capabilities.

The short answer

  • Gemma 4 31B lists lower input and output prices.
  • Gemma 4 31B supports vision; GPT-OSS 120B does not.

Side-by-side specs

SpecGemma 4 31BGPT-OSS 120B
ProviderGoogle AIOpenAI
Input price$0.2/M$0.35/M
Output price$0.2/M$0.75/M
Blended price (3:1)$0.2/M$0.45/M
Context window128k tokens128k tokens
InputText, ImagesText
Structured outputYesYes
WeightsOpen (Apache 2.0)Open (Apache 2.0)
ReleasedApril 2, 2026August 5, 2025

Same work, both models

WorkloadGemma 4 31BGPT-OSS 120B
One chat reply3,000 tokens in, 500 outGPT-OSS 120B costs 2.0× as much as Gemma 4 31B$0.0007$0.0014
Summarise a 100-page report50,000 tokens in, 1,500 out, one requestGPT-OSS 120B costs 1.8× as much as Gemma 4 31B$0.01$0.02
1,000 classification calls500 tokens in, 20 out, per call$0.10$0.19
Coding-agent session2M tokens in across ~60 turns, 60,000 out, no cache$0.41$0.75

At listed rates. Token counts are typical sizes, not measurements.

Gemma 4 31B pricing notes

  • Output bills at the same $0.20 per 1M tokens as input, so long generations cost no more per token than prompts.
  • No cached-input discount: repeated prompt tokens bill at the full input rate.

When to pick which

Gemma 4 31B

Gemma 4 31B is the largest dense model in Google's Apache 2.0 open-weights Gemma 4 family, released April 2026. It ships alongside the 26B A4B mixture-of-experts model, takes text and images, and has an optional thinking mode.

Pick it if

  • want Apache 2.0 open weights you can also self-host
  • need image input and a thinking mode at a low flat rate
  • write long outputs, since output costs the same as input

Skip it if

  • you need audio input; Google limits it to smaller Gemma 4 sizes
  • you rely on cached-prompt discounts to cut repeat-context cost

GPT-OSS 120B

GPT-OSS 120B is the larger of OpenAI's two Apache 2.0 open-weight models, with 117B total and 5.1B active parameters. It takes text only and sits above the cheaper GPT-OSS 20B.

Pick it if

  • you want Apache 2.0 open weights you could also self-host
  • you need adjustable reasoning effort: low, medium or high
  • you need function calling and structured outputs from an open model

Skip it if

  • you need image input; it takes text only
  • you are on the free plan, which includes only the 20B sibling

FAQ

Which is cheaper, Gemma 4 31B or GPT-OSS 120B?

Gemma 4 31B lists lower input and output prices. On a coding-agent session (2M tokens in, 60,000 out) Gemma 4 31B costs $0.41 and GPT-OSS 120B $0.75.

Which one accepts images?

Gemma 4 31B supports vision; GPT-OSS 120B does not.

Can I switch between Gemma 4 31B and GPT-OSS 120B mid-task?

Yes. In an Octomind session, /model octohub:gemma-4-31b and /model octohub:gpt-oss-120b switch models without losing the conversation, so you can draft on one and review on the other.

Try either model

Switch between models inside the same Octomind session.

Prices from the catalog of 2026-10-31