Google Gemini
Multimodal generative AI for text, vision, and code generation
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Machine Learning
- Documentation / URL
- https://ai.google.dev/gemini-api/docs
Overview
Google Gemini is a family of multimodal AI models (text, image, audio, video, code) served via the Gemini API at generativelanguage.googleapis.com. Auth is a free API key — note that an invalid key returns HTTP 400 (Google convention), not 401 (verified).
Quick Start
List models (replace YOUR_KEY):
curl "https://generativelanguage.googleapis.com/v1beta/models?key=YOUR_KEY"
Generate text:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent" \
-H "Content-Type: application/json" \
-d '{
"contents": [{ "parts": [{ "text": "Explain quantum computing in one sentence" }] }]
}' \
"?key=YOUR_KEY"
Authentication
- Get a key at aistudio.google.com (free, Google account).
- Send it as the
keyquery parameter. - Invalid keys return 400 with an error body (verified) — treat 400-with-auth-message as an auth problem.
Rate Limits & Notes
- Free tier includes generous daily limits for Gemini Flash models (check the docs).
- Model IDs:
gemini-2.0-flash,gemini-2.0-pro,gemini-1.5-flash, etc. — fetch/v1beta/modelsfor the current list. - OpenAI-compatible endpoint available (
/v1beta/openai/). - Supports multimodal input, function calling, and structured output.
FAQ
Is Gemini API free? Free tier with daily limits; paid plans scale.
How do I get a key? aistudio.google.com → Get API key.
Why 400 instead of 401? Google returns 400 for invalid API keys (verified) — check the error body.
More in Machine Learning
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| AI Economics Tools Token cost, LLM energy, agent-hour and Proof-Adjusted Autonomy calculators by Michał Piszczek | No auth | Yes | Yes | ↗ |
| AI For Thai Free Various Thai AI API | API Key | Yes | Yes | ↗ |
| BRAINIALL PT-BR and Spanish audio transcription with diarization and SRT/VTT | API Key | Yes | Yes | ↗ |
| Clarifai Computer Vision | OAuth | Yes | Unknown | ↗ |
| Cloudmersive Image captioning, face recognition, NSFW classification | API Key | Yes | Yes | ↗ |