404 NOT_FOUND
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start by comparing the server and local environments and the Gemini API request for models/gemini-2.0-flash-exp-image-generation. Use the error's suggested ListModels check to determine whether the model is available for v1beta and generateContent in each environment; done means the server request works or the environment-specific limitation is documented.
Written by the indexing model from the issue text.
Description
Description of the bug:
When calling the Gemini API (models/gemini-2.0-flash-exp-image-generation) from a server environment, a 404 NOT_FOUND error is returned. However, the same API call works successfully when executed from a local environment, generating the expected content without errors.
{
"isSuccess": false,
"error": "404 NOT_FOUND. {'error': {'code': 404, 'message': 'models/gemini-2.0-flash-exp-image-generation is not found for API version v1beta, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.', 'status': 'NOT_FOUND'}}"
}
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response
- Dominant language
- CSS
- Stars
- 493
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google-gemini/gemini-api-quickstart
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
ErrorOpen
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Different ResultsMay be free again @Giom-V claimed this 684 days ago, and no pull request is open. Openquestion
google-gemini/gemini-api-quickstart#16 · 3 comments · 1 assignee ·
-
Endpoint missingOpen
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in google-gemini/gemini-api-quickstart
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
avantifellows/db-service#871 ·
Maintainers usually reply within 1 day
-
Configuration new tool
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
novalo-dev/Prestashop-MCP-Server#366 ·
Maintainers usually reply within 1 day
-
bot-triaged module: correctness (silent) module: fft triage review
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 10 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100