gpt-oss-20b is 129.6× cheaper per million tokens (blended). Gemini 3.1 Pro Preview Custom Tools has the larger context window (1,048,576 vs 131,072 tokens, 8.0×). gpt-oss-20b is open-weights; the other is not.

Gemini 3.1 Pro Preview Custom Tools vs gpt-oss-20b

Live catalog fields. Best-in-row is highlighted.

Gemini 3.1 Pro Preview Custom Tools

Google · google__gemini-3.1-pro-preview-customtools

gpt-oss-20bopen

OpenAI · openai__gpt-oss-20b

Identity

Fieldgoogle__gemini-3.1-pro-preview-customtoolsopenai__gpt-oss-20b
ProviderGoogleOpenAI
Sluggoogle__gemini-3.1-pro-preview-customtoolsopenai__gpt-oss-20b
Statuslivelive
Open weightsNoYes
License——
HuggingFace—openai/gpt-oss-20b

Quality

Fieldgoogle__gemini-3.1-pro-preview-customtoolsopenai__gpt-oss-20b
Quality index (0–100)——

Cost

Fieldgoogle__gemini-3.1-pro-preview-customtoolsopenai__gpt-oss-20b
Input $ / 1M tokens$2.00$0.02
Cached input $ / 1M$0.20$0.01
Output $ / 1M tokens$12.00$0.09

Context

Fieldgoogle__gemini-3.1-pro-preview-customtoolsopenai__gpt-oss-20b
Max context tokens1,048,576131,072
Max output tokens65,53632,768

Modalities

Fieldgoogle__gemini-3.1-pro-preview-customtoolsopenai__gpt-oss-20b
Inputtext, audio, image, video, filetext
Outputtexttext