I am developing React Apps in AI Studio that will be deployed to my own servers. These apps will use Gemini and Imagen functionality and thus need an API key to work properly. So in the past I would have a Settings dialog with a field for the user to provide their own API Key. But this doesn’t work in AI Studio any more because the AI is now claiming this is prohibited.
But if I deploy my apps with my own key, then I go bankrupt because of all the requests that could be generated by users from all over the Internet. This is unacceptable for me. So I need a function that will allow users to set their own API key for each app. Thus they will use their own budget but not mine.
Right now, AI Studio seems to have an alternate solution that adds an overlay to set the API key within AI Studio. Which would be fine if my apps were used in AI Studio. But that’s not the case. They need to run on my private Ubuntu server where they are deployed using NPM. This worked well for my past apps. But now it fails as it will try to handle the API key through AI Studio.
So, this feature is critical for my own apps to deploy them. Without this, the whole AI Studio becomes useless to me. So please allow apps to ask for the API key or find a better mechanism that will work for deployed apps on personal servers.