Hi everyone,
I’m currently developing a React-based workflow directly inside the Gemini Canvas sandbox (Antigravity platform).
Previously, I was able to successfully call the models/gemini-2.5-flash-image-preview:generateContent endpoint using the environment’s natively injected credentials to generate and edit images. It was working flawlessly.
However, the endpoint has recently completely stopped working in the Canvas environment. Whenever I trigger image generation now, I consistently hit the following error:
- HTTP 401 (Unauthorized)
My Questions for the Team:
- Has the
gemini-2.5-flash-image-previewmodel been disabled, restricted, or fully revoked for the Canvas (Antigravity) environment? - Is there an issue with the sandbox’s shared token pool losing authorization for this specific image model?
- If it is restricted, is there a recommended alternative model currently available inside Canvas for image generation?
This authorization issue is currently a hard blocker for our UI workflow.
Any insights, confirmations, or fixes from the Google team would be hugely appreciated! Thank you!