Okapi Okapi

Gemini API · Model retirement

gemini-2.0-flash-lite

Stopped working

Calls to the model gemini-2.0-flash-lite on Gemini API stopped working on June 1, 2026.

What to use instead of gemini-2.0-flash-lite

Move to gemini-3.5-flash-lite. gemini-3.1-flash-lite, named first, stops working on 2027-05-07.

Facts

API
Gemini API generativelanguage.googleapis.com
Model
gemini-2.0-flash-lite
Kind
Model retirement
Takes effect
June 1, 2026
Calls after that day
Fail
Source
Deprecations page
Last updated

gemini-2.0-flash-lite on other APIs

More from Gemini API

Know before your API calls break.

Okapi finds the calls a breaking change hits in your code and opens the pull request that fixes them.

Add to GitHub