Skip to content

Remove deprecated preview models from LatestGeminiModelNames #2016

@ShacharYonai

Description

@ShacharYonai

Question

Gemini 2.5 Flash and Gemini 2.5 Pro have reached general availability (GA) as of June 17, 2025. Preview endpoints will be discontinued on July 15, 2025.

Currently pydantic-ai models:

LatestGeminiModelNames = Literal[
    "gemini-1.5-flash",
    "gemini-1.5-flash-8b",
    "gemini-1.5-pro",
    "gemini-1.0-pro",
    "gemini-2.0-flash",
    "gemini-2.0-flash-lite-preview-02-05",
    "gemini-2.0-pro-exp-02-05",
    "gemini-2.5-flash-preview-05-20",
    "gemini-2.5-pro-exp-03-25",
    "gemini-2.5-pro-preview-05-06",
]
Preview Endpoint Availability and Removal: All existing Gemini 2.5 Flash and Pro preview endpoints (listed below) will continue to be available with their current preview pricing until July 15, 2025. After this date, these preview endpoints will be shut down.
o	gemini-2.5-flash-preview-04-17
o	gemini-2.5-flash-preview-05-20
o	gemini-2.5-pro-preview-03-25
o	gemini-2.5-pro-preview-05-06
o	gemini-2.5-pro-preview-06-05
Required actions:
To ensure uninterrupted service and to use the new GA capabilities, you will need to do the following:
•	Migrate to new GA endpoints: Update your applications to use the new GA endpoints (gemini-2.5-flash and gemini-2.5-pro) before July 15, 2025. After this date, the preview endpoints will be decommissioned.

This is a message recieved from Google for my projects that run on GCP and use pydantic-ai agents.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions