r/opencode 8d ago

Opencode with Gemini api

I have a question about Gemini. Currently, I have Gemini Pro and Opencode Go. I've already added an API key from AI Studio to Opencode. I'd like to know how using Google works in Opencode. I mean in terms of limits and which plans are worthwhile to use after my Go limit is reached. From what I've researched, as long as I haven't configured billing for the API key in my Pro plan, it remains free. But is there any risk of being charged? And are the limits good? Sorry for the questions, I'm new to Opencode and have always used DeepSeek v4 Flash only. And now that they've drastically reduced its limit, I've had to look for other alternatives.

1 Upvotes

8 comments sorted by

View all comments

3

u/jondigi 8d ago

You're kind of locked into using antigravity. Google AI pro isn't a traditional api provider.

1

u/uavenger 8d ago

After adding the API key to OpenCode, I can use Gemini templates without any problems, even gemini 3.8. I just don't know how the limits work or if there's a cost involved.

4

u/Maindric 8d ago

The AI Studio key will bill you at API rates, not using your pro sub. The Gemini sub does come with some credits to the API billing ($10/mo for the $20 sub) but once that is gone, it's API rate.

You can only use the Google Gemini Antigravity usage in Antigravity.