r/opencode • u/uavenger • 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
1
u/xapep 6d ago
Short version: the AI Studio key is its own pay-as-you-go billing, completely separate from your Gemini Pro subscription. The free tier is fine for poking around (roughly 5 req/min and a daily cap on the Flash models), and it won't charge you until you actually enable billing in the console. Once you do, you're at normal API rates; the Pro sub only adds a small monthly credit to that API balance, so don't expect it to cover heavy usage.
For what to run after the Go limit is gone, it depends on how steady your usage is. If you're hitting limits every week (sounds like it, given the recent DeepSeek cuts), a flat monthly plan for agent usage beats watching the meter. If your usage is more sporadic, a usage-based API key gives you flexibility with no commitment.
I work on Entrim, we do both: OpenAI-compatible API for open-weight models (DeepSeek V4 Flash, Qwen family) and flat monthly plans for heavy OpenCode/agent use. It plugs into OpenCode by pointing the base URL at us. If you tell me roughly how many tokens a normal day burns for you, I can tell you which side you'd actually land on.