AiCostCompare

Gemini 3.6 Flash vs GPT-5.1-Codex

Side-by-side API pricing and Artificial Analysis performance for Gemini 3.6 Flash (Google) and GPT-5.1-Codex (OpenAI). Green cells mark the better value in each row.

Prices updated Jul 22, 2026, 1:37 AM UTC · refreshed hourly

Gemini 3.6 Flash

Google

GPT-5.1-Codex

OpenAI

Pricing
Input $/1M$1.50$1.25
Output $/1M$7.50$10.00
Blended $/1M (3:1)$3.00$3.44
RAG example (30K in / 2K out)$0.06$0.0575
Quality & speed
Intelligence Index50.134.7
Coding Index69.2
Agentic Index38.7
Output speed (tok/s)301213
Time to first token11.80s7.66s
Specs
Context window1.05M400K
Input modalitiestext, image, video, file, audiotext, image

FAQ

Which is cheaper, Gemini 3.6 Flash or GPT-5.1-Codex?

Gemini 3.6 Flash has the lower blended API price at $3.00 per 1M tokens (3:1 input:output mix), versus $3.44 for the other model. Prices are live from OpenRouter and refresh about hourly.

Which is better for RAG workloads?

For a typical RAG request (30K input / 2K output tokens), GPT-5.1-Codex costs about $0.0575 per request versus $0.06. Also compare context windows: Gemini 3.6 Flash offers 1.05M and GPT-5.1-Codex offers 400K.

Which scores higher on Artificial Analysis benchmarks?

Gemini 3.6 Flash leads on the Artificial Analysis Intelligence Index (50.1 vs 34.7). Check coding and agentic indices on this page for workload-specific tradeoffs.