Google AI Studio
OpenPike sends google-ai-studio/... models to Gemini through Google’s OpenAI-compatible endpoint, with your own Gemini API key.
Your key
Section titled “Your key”Create a Gemini API key at aistudio.google.com/apikey and add it on the Providers page as Google AI Studio. Vertex AI keys and service accounts are not supported.
Calling Gemini models
Section titled “Calling Gemini models”- Endpoint:
POST /v1/chat/completions. - Model names:
google-ai-studio/plus the Gemini model ID, for examplegoogle-ai-studio/gemini-3.6-flashorgoogle-ai-studio/gemini-2.5-pro. - SDK: the OpenAI SDK with
base_urlset tohttps://api.openpike.dev/v1.
Quirks
Section titled “Quirks”- OpenPike uses Google’s OpenAI compatibility layer (
https://generativelanguage.googleapis.com/v1beta/openai/), which Google describes as beta. Features it does not support do not work through OpenPike either. - Google notes that
reasoning_effortcannot be combined with its own thinking settings, and that reasoning cannot be turned off for Gemini 2.5 Pro, Gemini 3 and Gemini 4 models. - Dated prices. Google has announced price changes for some models; the table shows them, and each request is priced at the rates on the day it is made.
- Audio input rates and context cache storage are not applied to cost.
Prices
Section titled “Prices”| Model | Input | Cached input | Output | Notes | As of |
|---|---|---|---|---|---|
google-ai-studio/gemini-4-carbon | $2.00 | $0.10 | $10.00 | From 2026-12-01: $4.00 in, $20.00 out. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-4-argon | $2.00 | $0.10 | $10.00 | From 2026-12-01: $4.00 in, $20.00 out. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-4-hydrogen | $1.50 | $0.075 | $7.50 | Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3.8-flash | $0.75 | $0.075 | $3.75 | From 2027-01-01: $1.50 in, $7.50 out. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3.6-flash | $0.75 | $0.075 | $3.75 | From 2027-01-01: $1.50 in, $7.50 out. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3.5-flash-lite | $0.30 | $0.030 | $2.50 | Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3.1-pro-preview | $2.00 | $0.20 | $12.00 | Above 200,000 prompt tokens: $4.00 in, $18.00 out. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3.1-pro-preview-customtools | $2.00 | $0.20 | $12.00 | Above 200,000 prompt tokens: $4.00 in, $18.00 out. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3.1-flash-lite | $0.25 | $0.025 | $1.50 | Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-3-flash-preview | $0.50 | $0.050 | $3.00 | Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-2.5-pro | $1.25 | $0.13 | $10.00 | Above 200,000 prompt tokens: $2.50 in, $15.00 out. From 2026-12-01: $0.75 in, $3.75 out. From 2027-01-01: $1.50 in, $7.50 out. Deprecated: requests route to gemini-3.8-flash from 2026-12-01, so they are priced as gemini-3.8-flash from then. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-2.5-flash | $0.30 | $0.030 | $2.50 | Deprecated: requests route to gemini-3.5-flash-lite from 2026-12-01, which has the same rates. Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
google-ai-studio/gemini-2.5-flash-lite | $0.10 | $0.010 | $0.40 | Text input rate; audio input and cache storage per hour are not applied. | 2026-11-16 |
USD per 1M tokens, from https://aistudio.google.com/docs/pricing.