# Google Gemini API

Category: [AI models and chat](https://free-web-services.com/web-services/ai/llm/)  
Page: https://free-web-services.com/web-services/ai/llm/google-gemini-api.html  
Documentation: https://ai.google.dev/gemini-api/docs

The Gemini API from Google gives access to the Gemini family of AI models for text generation, chat, summarising, coding, image and document understanding, speech, embeddings and function calling. Call it over REST or with the official SDKs for Python, JavaScript, Go and more, and try prompts first in Google AI Studio. Free tier for most text, speech and embedding models with a free API key and rate limits; content sent on the free tier may be used by Google to improve its products, so use the paid tier for private data.

- API key: Needed, free
- Pricing: Free tier for most text, speech and embedding models with a free API key and rate limits; content sent on the free tier may be used by Google to improve its products, so use the paid tier for private data.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST
- Provider: ai.google.dev
- Last checked: Working on November 1st, 2026

Example request:

```sh
curl -X POST 'https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent' \
  -H 'x-goog-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"contents": [{"parts": [{"text": "hello"}]}]}'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

