Skip to content

Gemini Embedding 2 on Google AI Studio

Google AI Studio / Gemini API Free API tier

The catch: Outside the EEA, Switzerland and the UK, free-tier prompts and outputs are used to improve Google products and may be read by human reviewers. Exact limits are only visible inside AI Studio, and 2.5 models are limited to past users.

AccessFree API tier
Free limitsText, image, audio and video input are all free of charge on the free tier (Standard); Batch is not available on the free tier. 8,192 input tokens; 128 to 3,072 output dimensions. RPM/RPD shown only in AI Studio.
Modalityembeddings
Credit cardNot required
Commercial useAllowed
Trains on your dataYes, on the free tier
Licence or termsGoogle APIs Terms of Service + Gemini API Additional Terms of Service (effective 23 Mar 2026)
Context window8,192 tokens
Model idgemini-embedding-2
Base URLhttps://generativelanguage.googleapis.com/v1beta/
Last checked8 Oct 2026

How to use Gemini Embedding 2

It speaks the OpenAI API at https://generativelanguage.googleapis.com/v1beta/, so the OpenAI SDK you already use works once you change the base URL and key.

Quickstart
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-2:embedContent" -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" -X POST -d '{"model":"models/gemini-embedding-2","content":{"parts":[{"text":"What is the meaning of life?"}]}}'
Paste into Claude Code
I want to use the free AI model "Gemini Embedding 2" from Google AI Studio (model id: gemini-embedding-2) in my project.
Please:
1. Check the provider docs and give me the exact steps to get a free API key.
2. Give me a minimal working example that reads the key from an environment variable.
3. Tell me the real free limits and any catch (commercial use, card, data use). Listed limits: Limits shown after sign-in.
4. If the same provider has a more generous free option, mention it.

Before you ship on it

  • Outside the EEA, Switzerland and the UK, free-tier prompts and outputs are used to improve Google products and may be read by human reviewers. Exact limits are only visible inside AI Studio, and 2.5 models are limited to past users.
  • Prompts on the free tier may be used to train models. Keep customer data off it.
  • Gemini API Additional Terms (effective 23 Mar 2026): use is 'for developers building with Google AI models for professional or business purposes, not for consumer use'. No ban on commercial use of unpaid quota, but 'You…
  • Free tiers are shared capacity: treat the limits as a ceiling, not a promise, and keep a paid fallback.

Questions

Is Gemini Embedding 2 on Google AI Studio free?

Yes. Google AI Studio offers it as free api tier, with these limits: Limits shown after sign-in. No credit card is needed.

Can I use Gemini Embedding 2 on Google AI Studio commercially?

Yes, under Google APIs Terms of Service + Gemini API Additional Terms of Service (effective 23 Mar 2026). Check the current terms before you ship.

How do I start with Gemini Embedding 2 on Google AI Studio?

It speaks the OpenAI API at https://generativelanguage.googleapis.com/v1beta/, so the OpenAI SDK you already use works once you change the base URL and key.

Source: ai.google.dev/gemini-api/docs/pricing, checked 8 Oct 2026.