LLM ReferenceLLM Reference
Google AI Studio

Gemini Embedding 2 Preview on Google AI Studio

Gemini Embedding · Google DeepMind

Serverless

Last refreshed 2026-05-14. Next refresh: weekly.

Why use Gemini Embedding 2 Preview on Google AI Studio?

Google AI Studio offers Gemini Embedding 2 Preview 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.

Input / 1M
$0.20
Output / 1M
Free
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install google-genai
Auth
export GOOGLE_API_KEY=...
Call
import os
from google import genai
client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])
response = client.models.generate_content(
Model ID
gemini-embedding-2-preview

Request 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-preview",
    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.

Pricing

TypePrice (per 1M)
Input tokens$0.20
Output tokensFree

Capabilities

VisionMultimodal

About Gemini Embedding 2 Preview

Preview release of Gemini Embedding 2, the official Google embedding model that preceded the GA gemini-embedding-2 entry.

FAQ

What does Gemini Embedding 2 Preview cost on Google AI Studio?

On Google AI Studio, Gemini Embedding 2 Preview costs $0.2 per 1M input tokens and $0 per 1M output tokens.

Who created Gemini Embedding 2 Preview?

Gemini Embedding 2 Preview was created by Google DeepMind as part of the Gemini Embedding model family.

Is Gemini Embedding 2 Preview open source?

Gemini Embedding 2 Preview is not open source; the seed data lists it as proprietary.

Get Started

Model Specs

Released2026-04-22

Related Models on Google AI Studio