Model 'googleai/gemini-2.5-pro-preview-05-06' not found

⨯ Error [GenkitError]: NOT_FOUND: Model ‘googleai/gemini-2.5-pro-preview-05-06’ not found
at async makeApiCall (file://C%3A/Users/DRISS/Desktop/pdcst/dualmind-chat/src/ai/flows/continue-agent-dialogue.ts:69:25)
at async (file://C%3A/Users/DRISS/Desktop/pdcst/dualmind-chat/src/ai/flows/continue-agent-dialogue.ts:94:15)
67 | while (attempt < maxRetries) {
68 | try {

69 | const result = await promptFn(promptInput);
| ^
70 | return result.output;
71 | } catch (error: any) {
72 | attempt++; {
source: undefined,
status: ‘NOT_FOUND’,
detail: undefined,
code: 404,
originalMessage: “Model ‘googleai/gemini-2.5-pro-preview-05-06’ not found”,
traceId: ‘c918dad220a952acd8e5e26212a679d5’,
digest: ‘673115247’
}
POST / 500 in 2898ms

Hi @ridss21 , Welcome to the forum.

Can you pass models/gemini-2.5-pro-preview-05-06 instead of googleai/gemini-2.5-pro-preview-05-06.

Thanks.

“originalMessage: “Model ‘models/gemini-2.5-flash-preview-04-17’ not found””,
The problem still exists; this model gemini-2.5-flash-preview-04-17 is the one that works among all the models of gemini-2.5

Looks like this might be a genkit SDK issue. Could you please file a report on the genkit SDK github repository GitHub · Where software is built?

1 Like