Okapi Okapi

Gemini API · Model retirement

gemini-3.1-flash-lite

Stops working (in 197 days)

Calls to the model gemini-3.1-flash-lite on Gemini API stop working on May 7, 2027.

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

Move to gemini-3.5-flash-lite, recommended by Google.

Facts

API
Gemini API generativelanguage.googleapis.com
Model
gemini-3.1-flash-lite
Kind
Model retirement
Takes effect
May 7, 2027
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