Free Gemini API access — 1M-token context, multimodal
Google AI Studio (Gemini) — Free Gemini API access — 1M-token context, multimodal.
Free tier: Free tier is per-model. Flash models get the most generous limits; data may be used to improve products on the free tier.
API is OpenAI-compatible — point your SDK at https://generativelanguage.googleapis.com/v1beta.
gemini-2.0-flashgemini-1.5-flashgemini-1.5-flash-8bgemini-1.5-proPay-as-you-go via Vertex AI or AI Studio billing. Gemini 1.5 Flash: $0.075/1M input tokens, $0.30/1M output. Pro tiers higher.
Vertex AI for enterprise SLA, VPC-SC, and CMEK.
https://generativelanguage.googleapis.com/v1beta
OpenAI-compatible — works with the OpenAI SDK by overriding base_url.
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=$GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello in 5 words"}]}]}'
Long-context tasks (1M tokens), multimodal (image, audio, video), and apps already in GCP.
Strict data-privacy users on free tier — Google may use prompts/outputs for product improvement.
Free tier is per-model. Flash models get the most generous limits; data may be used to improve products on the free tier. No credit card is required to sign up.
Most commonly used: gemini-2.0-flash, gemini-1.5-flash, gemini-1.5-flash-8b, gemini-1.5-pro. The full current list is on Google AI Studio (Gemini)'s docs page.
Yes — point the OpenAI SDK's base URL at `https://generativelanguage.googleapis.com/v1beta` and pass your Google AI Studio (Gemini) API key.
Pay-as-you-go via Vertex AI or AI Studio billing. Gemini 1.5 Flash: $0.075/1M input tokens, $0.30/1M output. Pro tiers higher. If your traffic is bursty or seasonal, the free tier may be enough; if you need a guaranteed SLA, upgrade.