API pricing

Google API pricing

Google API prices run from $0.04 per million input tokens (Gemma 3 4B) to $2 (Gemini 3.1 Pro Preview). Its highest-ranked model, Gemini 3.8 Flash, costs $0.75 input and $3.75 output per million tokens.

Last verified

Official price list: ai.google.dev

API prices per million tokens
Cached input
Gemma 3 4B (open weights)$0.04$0.08—$0.05131K28.1
Gemma 3 12B (open weights)$0.05$0.15—$0.075131K32.1
Gemma 3 27B (open weights)$0.08$0.16—$0.10131K30.8
Gemma 4 26B A4B IT (open weights)$0.0675$0.23$0.0375$0.11262K43.5
Gemma 4 31B IT (open weights)$0.09$0.34$0.05$0.15262K43.5
Gemini 2.5 Flash-Lite$0.10$0.40$0.01$0.181.05M37.0
Gemini 3.1 Flash Lite$0.25$1.50$0.025$0.561.05M40.8
Gemma 2 27B (open weights)$0.65$0.65—$0.658K29.4
Gemini 2.5 Flash$0.30$2.50$0.03$0.851.05M39.3
Gemini 3.5 Flash Lite$0.30$2.50$0.03$0.851.05M41.5
Gemini 3 Flash Preview$0.50$3$0.05$1.131.05M52.3
Gemini 3.6 Flash$0.75$3.75$0.075$1.501.05M54.1
Gemini 3.7 Flash$0.75$3.75$0.075$1.501.05M59.8
Gemini 3.8 Flash$0.75$3.75$0.075$1.501.05M61.8
Nano Banana 2.1$1.50$7.50—$3131K—
Gemini 3.5 Flash$1.50$9$0.15$3.381.05M54.2
Gemini 2.5 Pro$1.25$10$0.13$3.441.05M45.0
Gemini 3.1 Pro Preview$2$12$0.20$4.501.05M56.7
Gemini 3.1 Pro Preview Custom Tools$2$12$0.20$4.501.05M—

Prices on other platforms

The same models are often sold through clouds and resellers at different rates.

ModelRouteInputOutputChecked
Gemini 3.8 Flashgoogle$0.75$3.752026-10-10
openrouter$0.75$3.752026-10-10
vertex$0.75$3.752026-10-10
Gemini 3.7 Flashgoogle$0.75$3.752026-10-10
openrouter$0.75$3.752026-10-10
vertex$0.75$3.752026-10-10
Gemini 3.1 Pro Previewgoogle$2$122026-10-10
openrouter$2$122026-10-10
vertex$2$122026-10-10
Gemini 3.5 Flashgoogle$1.50$92026-10-10
openrouter$1.50$92026-10-10
vertex$1.50$92026-10-10
Gemini 3.6 Flashgoogle$0.75$3.752026-10-10
openrouter$0.75$3.752026-10-10
vertex$0.75$3.752026-10-10
Gemini 3 Flash Previewgoogle$0.50$32026-10-10
openrouter$0.50$32026-10-10
vertex$0.50$32026-10-10
Gemini 2.5 Progoogle$1.25$102026-10-10
openrouter$1.25$102026-10-10
vertex$1.25$102026-10-10
Gemma 4 31B ITbedrock$0.14$0.402026-10-10
deepinfra$0.20$0.402026-10-10
openrouter$0.09$0.342026-10-10
Gemma 4 26B A4B ITbedrock$0.13$0.402026-10-10
deepinfra$0.07$0.342026-10-10
openrouter$0.0675$0.232026-10-10
vertex$0.15$0.602026-10-10
Gemini 3.5 Flash Litegoogle$0.30$2.502026-10-10
openrouter$0.30$2.502026-10-10
vertex$0.30$2.502026-10-10
Gemini 3.1 Flash Litegoogle$0.25$1.502026-10-10
openrouter$0.25$1.502026-10-10
vertex$0.25$1.502026-10-10
Gemini 2.5 Flashgoogle$0.30$2.502026-10-10
openrouter$0.30$2.502026-10-10
vertex$0.30$2.502026-10-10
Gemini 2.5 Flash-Litegoogle$0.10$0.402026-10-10
openrouter$0.10$0.402026-10-10
vertex$0.10$0.402026-10-10
Gemma 3 12Bbedrock$0.09$0.292026-10-10
deepinfra$0.05$0.152026-10-10
openrouter$0.05$0.152026-10-10
Gemma 3 27Bbedrock$0.23$0.382026-10-10
deepinfra$0.08$0.162026-10-10
openrouter$0.08$0.452026-10-10
Gemma 2 27Bopenrouter$0.65$0.652026-10-10
Gemma 3 4Bbedrock$0.04$0.082026-10-10
deepinfra$0.05$0.102026-10-10
openrouter$0.05$0.102026-10-10
Gemini 3.1 Pro Preview Custom Toolsgoogle$2$122026-10-10
openrouter$2$122026-10-10
vertex$2$122026-10-10
Nano Banana 2.1openrouter$1.50$7.502026-10-10
vertex$1.50$302026-10-10

Frequently asked questions

How much does the Google API cost?

Google API prices run from $0.04 per million input tokens (Gemma 3 4B) to $2 (Gemini 3.1 Pro Preview). Its highest-ranked model, Gemini 3.8 Flash, costs $0.75 input and $3.75 output per million tokens.

Does Google discount cached input?

Yes. Cached input is billed at a lower rate on 14 of the 19 priced models; the cached rate is listed next to each model.