Gemini Embedding 2 Preview
gemini-embedding-2-previewPricing
List prices at Google AI Studio, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.20 | $0.00 | |
| Batch 50% off | $0.10 | 50% off |
What it costs a month
At Google AI Studio list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$60.00
- RAG over documents2,000 requests a day, 8K in / 0.6K out$96.00
- Coding agent1,000 requests a day, 40K in / 2K out$240
- Overnight batch20,000 requests a day, 4K in / 0.4K out, batch$240
Where to run it
2 hosts serve Gemini Embedding 2 Preview. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
Google AI StudioLab API gemini-embedding-2-preview | $0.20 / $0.00 | gemini-embedding-2-preview | |
Vertex AICloud gemini-embedding-2-preview | $0.20 / $0.00 | gemini-embedding-2-preview |
Show 1 more listings: regions, snapshots and variantsHide regional listings
| Vertex AI | |||||||
| Alias gemini-embedding-2-preview | $0.20 / $0.00 | gemini-embedding-2-preview | |||||
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- TextImagesAudio
- Produces
- Embeddings
- Features
- Audio input
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Google AI Studio.
Smaller Google models
No cheaper Google model keeps its key capabilities.
Other frontier labs
No cheaper match from another frontier lab.
Open-weight picks
No cheaper open-weight match.
Call it
Using Google AI Studio's API.
from google import genai
client = genai.Client() # reads GEMINI_API_KEY
response = client.models.generate_content(model="gemini-embedding-2-preview", contents="Hello")
print(response.text)curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-2-preview:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents": [{"parts": [{"text": "Hello"}]}]}'from litellm import completion
response = completion(
model="gemini/gemini-embedding-2-preview",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Gemini Embedding 2 Preview cost?
On Google AI Studio, Gemini Embedding 2 Preview costs $0.20 per million input tokens.
Which APIs offer Gemini Embedding 2 Preview?
Gemini Embedding 2 Preview runs on 2 APIs: Google AI Studio and Vertex AI.
What is Gemini Embedding 2 Preview's context window?
8K tokens.
Is Gemini Embedding 2 Preview being retired?
No retirement date is scheduled for it on any API we track.
What is Gemini Embedding 2 Preview's API model id?
Use gemini-embedding-2-preview with Google AI Studio.
Sources
Raw catalog entry for gemini-embedding-2-preview on Google AI Studio
{
"deprecation_date": "2026-11-06",
"deprecation_source": "https://ai.google.dev/gemini-api/docs/deprecations",
"input_cost_per_audio_token": 0.0000065,
"input_cost_per_audio_token_batches": 0.00000325,
"input_cost_per_image_token": 4.5e-7,
"input_cost_per_image_token_batches": 2.25e-7,
"input_cost_per_token": 2e-7,
"input_cost_per_token_batches": 1e-7,
"input_cost_per_video_token": 0.000012,
"input_cost_per_video_token_batches": 0.000006,
"litellm_provider": "gemini",
"max_input_tokens": 8192,
"mode": "embedding",
"output_cost_per_token": 0,
"output_vector_size": 3072,
"rpm": 10000,
"source": "https://ai.google.dev/gemini-api/docs/pricing",
"successor_model": "gemini/gemini-embedding-2",
"supports_audio_input": true,
"supports_embedding_image_input": true,
"supports_multimodal": true,
"supports_vision": true,
"tpm": 10000000
}