gpt-oss-20b vs llama-3.1-8b-instruct
gpt-oss-20b is 2.7× cheaper on input than llama-3.1-8b-instruct.
| gpt-oss-20b | llama-3.1-8b-instruct | |
|---|---|---|
| Input / 1M | $0.075 | $0.20 |
| Cached input / 1M | $0.037 | — |
| Output / 1M | $0.30 | $0.20 |
| Context window | 131K | 131K |
| Max output | 66K | 131K |
| Provider | Groq | Perplexity |
| Vision | No | No |
| Tool calling | Yes | No |
| Token count | estimated | estimated |
Which to pick
- Cheaper input: gpt-oss-20b
- Cheaper output: llama-3.1-8b-instruct
- Larger context: gpt-oss-20b
List price is not production cost. Output length, cache hit rate, retries and task quality move the real number more than the headline rate does — price your own prompt on the token ledger before deciding.
Related comparisons
gpt-oss-20b detail · llama-3.1-8b-instruct detail · All Groq pricing · All comparisons