Hi,
I encountered the same issue before.
I was able to fix it by selecting “us” as the server location when deploying the model.
It seems that certain models like gemini-2.0-flash-exp-image-generation are only available in specific regions, and using the “us” location solved the 404 error for me.
Hope this helps!