AI model comparison

Gemini 3.5 Flash vs GPT-5.2-Codex

Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.

Change models
Loading the catalog…
Markdown
Context tokens
1.05M
Input / 1M
$1.50
Output / 1M
$9.00
Context tokens
400K
Input / 1M
$1.75
Output / 1M
$14.00
Benchmark snapshot
Code Completion
Gemini 3.5 FlashGPT-5.2-Codex
76.087%
86.957%

Percent score · Result source · Test method

Catalog checked Nov 27, 202623 shared benchmark resultsRead the methodology

The trade-offs

Start with the differences that affect how this model fits your workload.

Benchmark results
Gemini 3.5 Flash and GPT-5.2-Codex scored 76.087% and 86.957%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
Token cost
For 1 million input tokens and 250,000 output tokens, the listed rates estimate $3.75 for Gemini 3.5 Flash and $5.25 for GPT-5.2-Codex.
Context window
Gemini 3.5 Flash lists 1,048,576 tokens of context. GPT-5.2-Codex lists 400,000 tokens. Reserve space for the output before routing long inputs.

Benchmarks

Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.

Shared benchmark profilePercentage scores from the first eight shared groups, sorted by the page evidence order.

Source Result source · Test method

Gemini 3.5 FlashGPT-5.2-Codex

Code Completion

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

76.087%
86.957%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Code Generation

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.282%
80.282%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Javascript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

63.636%
68.182%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Python

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

50%
60%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Typescript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

33.333%
20%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Amps Hard

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
98%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Connections

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

100%
95%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Consecutive Events

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

47.994%
89.016%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex
Show 15 more shared results

Integrals With Game

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

68%
75%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Logic With Navigation

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

74%
68%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Math Comp

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

95.098%
95.098%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Olympiad

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

91.877%
86.997%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Paraphrase

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

75.517%
67.05%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Plot Unscrambling

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

67.753%
56.035%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Simplify

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

69.1%
60.567%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Spatial

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

96%
94%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Story Generation

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

75.2%
74.783%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Summarize

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

82.583%
63.383%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Tablejoin

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

50.5%
45.596%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Tablereformat

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

96.078%
100%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Theory Of Mind

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.769%
78.846%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Typos

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

86%
70%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Zebra Puzzle

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

77.25%
70%
Test configurations
Gemini 3.5 Flash
gemini-3.5-flash-high
GPT-5.2-Codex
gpt-5.2-codex

Pricing and token cost

Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.

USD per million tokensGemini 3.5 FlashGPT-5.2-Codex
Uncached input$1.50$1.75
Output$9.00$14.00
Cache read$0.15$0.175
Cache write$0.0833Unavailable

Rates are a catalog snapshot. OpenRouter Models API

Estimate your workload

Enter total token counts. The estimate uses uncached input and output rates.

Gemini 3.5 Flash$3.75
GPT-5.2-Codex$5.25

Gemini 3.5 Flash costs $1.50 less at this token mix.

Model specifications

Context, output limits, modalities, and supported API parameters from the catalog.

SpecificationGemini 3.5 FlashGPT-5.2-Codex
Catalog statusListedListed
Catalog model IDgoogle/gemini-3.5-flashopenai/gpt-5.2-codex
ProviderGoogleOpenAI
Context window1,048,576 tokens400,000 tokens
Max output65,536 tokens128,000 tokens
Input modalitiesText, Image, Video, File, AudioText, Image
Output modalitiesTextText
Reasoning controlsListedListed
Tool callingListedListed
Structured outputsListedListed
Serving endpoints/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses
Catalog listing dateMay 19, 2026Jan 14, 2026

Use with Weave Router

Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.

Gemini 3.5 Flash

Weave Router availability is unverified for this model ID.

GPT-5.2-Codex

Weave Router availability is unverified for this model ID.

Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026

Explore Weave Router Read Weave Router benchmark results

Sources

Each benchmark links to its own result and test method when available.

MarkdownFull methodology