Last refreshed 2026-06-15. Next refresh: weekly.
Why use Gemini Embedding 2 on Google AI Studio?
Google AI Studio offers Gemini Embedding 2 with pay-as-you-go pricing at $0.20/1M input tokens. Google AI Studio is a model prototyping environment and API access point for Gemini models, offering an inference playground for developers to test and build AI applications.
Compare Gemini Embedding 2 across 2 providers to find the best fit for your use caseSetup recipe
Python + curlpip install google-genaiexport GOOGLE_API_KEY=...import os
from google import genai
client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])
response = client.models.generate_content(gemini-embedding-2Request example
import os
from google import genai
client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])
response = client.models.generate_content(
model="gemini-embedding-2",
contents="Hello"
)
print(response.text)Gotchas
- Use the model name directly, e.g. "gemini-2.0-flash", "gemini-1.5-pro", or "gemini-2.5-pro-preview-05-06".
- The examples expect GOOGLE_API_KEY; rename it only if your application config maps the new variable.
Compare Gemini Embedding 2 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Google AI Studio | $0.20 | Free |
| Vercel AI Gateway | $0.20 | — |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.20 |
| Output tokens | Free |
Capabilities
About Gemini Embedding 2
General availability release of Google's multimodal embedding model, released April 22, 2026. Generates 3072-dimensional vectors from text, images, documents, audio, and video inputs, mapping all modalities into a unified semantic space. Supports custom task instructions to optimize embeddings for retrieval, classification, clustering, or other goals. Output dimensionality is configurable via the output_dimensionality parameter. Priced at $0.20/1M input tokens. Distinct from gemini-embedding-2-preview (the earlier preview version). API ID: gemini-embedding-2.
FAQ
What does Gemini Embedding 2 cost on Google AI Studio?
On Google AI Studio, Gemini Embedding 2 costs $0.2 per 1M input tokens and $0 per 1M output tokens.
How does Google AI Studio compare to other Gemini Embedding 2 providers?
Gemini Embedding 2 is available from 2 providers. The cheapest input pricing is $0.2/1M tokens from Google AI Studio.
Who created Gemini Embedding 2?
Gemini Embedding 2 was created by Google DeepMind as part of the Gemini Embedding model family.
Is Gemini Embedding 2 open source?
Gemini Embedding 2 is not open source; the seed data lists it as proprietary.