Google Gemini API error
Gemini API 409 already_exists: what it means and how to fix it
Error message
409 already_existsRetry? NoLast verified 1 documented fix1 source
What it means
The entity you attempted to create already exists.
Causes
- Creating a resource that already exists
How to fix it
- Fix 1.
Check whether the resource already exists before re-creating it.
More Gemini API errors
All 30 Gemini API errorsHTTP 409 at other providers
FAQ
What does the Gemini API error "409 already_exists" mean?
The entity you attempted to create already exists.
How do I fix Gemini API "409 already_exists"?
Check whether the resource already exists before re-creating it.
Should I retry Gemini API "409 already_exists"?
No. The official docs treat this error as not retryable: fix the cause before sending the request again.
Which other AI APIs return HTTP 409?
Per their official error docs: Anthropic API (409 conflict_error), OpenAI API (409 ConflictError).
Sources
Last verified against 1 source: Gemini API's official docs and official SDK repositories.
- ai.google.devhttps://ai.google.dev/gemini-api/docs/api-errors
Newsletter
Know when the APIs change
One email per week. New model releases, API changes, what broke, and how developers are working around it.