by andunieee · 1w ago · 0 comments
There are a few ways to create/use an API key. Through Google cloud, through vertex, but by far the easiest way is to use AI studio. https://aistudio.google.com/ pretty good platform to try out any Google model or just create an API key and use in whatever you want without having to deal with Google Cloud UI.
Alternatively you can get from other sources as well such as openrouter.
Once I get a subscription can I use it from OpenCode or do I have to install some other thing?
I opened that link and immediately had to answer a bunch of questions, sign some terms of use, and finally faced an error "Failed to list API keys: permission denied. Please try again." I had never used this website before.
There is no place that shows me billing plans and what I would get from them. When I go on Billing it says something about API usage, so I guess this is not where I'll get a subscription, right? Still, it makes me create a project on Google Cloud Console, and it starts to hurt very quickly.
https://one.google.com/about/google-ai-plans/ had a 75% off on the Pro plan ($5/mo for 3 months) and limits are decent.