Skip to content

Unable to generate content due to 404 #930

@monolithed

Description

@monolithed

Hi,

I haven’t changed anything in my code, but today all requests to the Gemini models are returning 404. Yesterday I had a similar issue with the Pro model, which was returning 429 and 500 errors for several hours.

const ai = new GoogleGenAI({
    apiKey: GOOGLE_GEMINI_API_KEY,
});

await ai.models.generateContent({
        model: "gemini-2.5-flash",
        contents: "Explain how AI works in a few words",
});
failed: ApiError: {"error":{"message":"","code":404,"status":"Not Found"}}
Image

It would be great to add debug parameters to see what is being sent to the server. Right now, errors are like a black box.

UPD: https://generativelanguage.googleapis.com/v1beta/openai/chat/completions via openai works fine

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions