Okapi Okapi

Gemini API · Model retirement

gemini-2.0-flash-lite-001

Stopped working

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

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

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-001
Kind
Model retirement
Takes effect
June 1, 2026
Calls after that day
Fail
Source
Deprecations page
Last updated

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