freeapis

Google Gemini

Multimodal generative AI for text, vision, and code generation

Authentication
API Key
HTTPS
Yes
CORS
Unknown
Data source
public-apis

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 key query 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/models for 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

APIAuthHTTPSCORS
1ClickImpact (AI Energy)

Track and offset the energy and carbon footprint of your AI/LLM usage via a simple API

API KeyYesUnknown↗
Advanced Multilanguage AI Translator (RapidAPI)

AI-powered translator supporting multiple languages with fast, context-aware responses

API KeyYesUnknown↗
AI Economics Tools

Token cost, LLM energy, agent-hour and Proof-Adjusted Autonomy calculators by Michał Piszczek

No authYesYes↗
AI For Thai

Free Various Thai AI API

API KeyYesYes↗
AI Learning Engine

Create, auto-grade, and analyze learning tasks with AI-based evaluations

API KeyYesUnknown↗