Google adapter
Terminal
pip install "opentine[google]"
export GOOGLE_API_KEY="..."google_agent.py
1from opentine import Agent
2from opentine.models.google import Google
3
4model = Google(model="gemini-3.5-flash", api_key=None, service_tier=None)
5run = Agent(model=model).run_sync("Summarize this decision.")
Adapter behavior
- Uses the
google-genaiSDK throughgenai.Client. - Preserves text, tool calls, continuation parts, refusals, and reported model identity.
- Normalizes usage, including cache and audio dimensions, and prices an exact effective card when available.
- Supports standard, flex, or priority tiers; uncertain Priority fallback remains visibly unknown.
The constructor default is gemini-3.5-flash. Thinking support is a model-name hint, not a guarantee for every endpoint or variant.