Gemma 4 31B (Free) vs GPT-oss-120b
API price, context window, capabilities and live speed, side by side.
Gemma 4 31B (Free) has the larger context window (262K vs 131K tokens). Only Gemma 4 31B (Free) supports image input; GPT-oss-120b does not. Only Gemma 4 31B (Free) supports tool calling; GPT-oss-120b does not. Both run on the same UltraGPT API key, so you can switch between them by changing the model field - or list both in models: [...] for automatic fallback.
| Gemma 4 31B (Free) | GPT-oss-120b | |
|---|---|---|
| Lab | OpenAI | |
| Model id | gemma-4-31b-free | gpt-oss-120b |
| Input / 1M tokens | Free | $0.05 |
| Cached input / 1M | Free | $0.05 |
| Output / 1M tokens | Free | $0.25 |
| Context window | 262K | 131K |
| Input | image, text, video | text |
| Output | text | text |
| Tool calling | ✓ | — |
| Vision (image input) | ✓ | — |
| Reasoning | — | — |
Cost of 1,000 requests
Estimated from the list prices above; your real cost is reported per request in usage.cost.
| Chatbot1.5K tokens in, 400 out | Gemma 4 31B (Free) $0.00 | GPT-oss-120b $0.18 |
|---|---|---|
| RAG over documents20K in, 800 out | Gemma 4 31B (Free) $0.00 | GPT-oss-120b $1.20 |
| Coding agent step40K in (80% cached), 1.5K out | Gemma 4 31B (Free) $0.00 | GPT-oss-120b $2.38 |
Use both, with automatic fallback
Same key, same endpoint: change the model id between "gemma-4-31b-free" and "gpt-oss-120b".
curl https://staging-api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma-4-31b-free",
"models": ["gpt-oss-120b"],
"messages": [{ "role": "user", "content": "Hello!" }]
}'FAQ
Which is cheaper, Gemma 4 31B (Free) or GPT-oss-120b?
Gemma 4 31B (Free): Free in / Free out per 1M. GPT-oss-120b: $0.05 in / $0.25 out per 1M. Prices are in USD and billed per use from your UltraGPT balance.
Can I use Gemma 4 31B (Free) and GPT-oss-120b with the same API key?
Yes. Both are available through the OpenAI-compatible UltraGPT API at https://staging-api.ultragpt.pro/v1: set model to "gemma-4-31b-free" or "gpt-oss-120b".
Which has a bigger context window, Gemma 4 31B (Free) or GPT-oss-120b?
Gemma 4 31B (Free): 262,144 tokens. GPT-oss-120b: 131,072 tokens.
