LiteLLMLiteLLM/ MODELS

Gemini Embedding 2 Preview API Pricing

By Google · 2 providersgemini/gemini-embedding-2-preview
Input
$0.20 per 1M tokens
Context
8K tokens

As of November 24, 2026, Gemini Embedding 2 Preview costs $0.20 per 1M input tokens on Google AI Studio. It has an 8,192-token context window.

Prices updated Checked
Deprecated: Google AI Studio lists November 6, 2026 as the deprecation date for gemini/gemini-embedding-2-preview.

Gemini Embedding 2 Preview pricing by provider

2 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Gemini Embedding 2 Preview prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputBatch inContext
Google AI Studiogemini/gemini-embedding-2-preview$0.20$0$0.108K
Google Vertex AIvertex_ai/gemini-embedding-2-preview$0.20$0$0.108K

Other Gemini Embedding 2 Preview prices on Google AI Studio

Audio input$6.50 per 1M tokens

What Gemini Embedding 2 Preview costs in practice

Embedding 10,000 documents of 500 tokens each

Google AI Studio$1.00
Google Vertex AI$1.00

Gemini Embedding 2 Preview features

Input: image, audio.

Use Gemini Embedding 2 Preview with LiteLLM

Call Gemini Embedding 2 Preview through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/embeddings. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import embedding

response = embedding(
    model="gemini/gemini-embedding-2-preview",
    input=["hello world"],
)
Proxy config.yaml
model_list:
  - model_name: gemini-embedding-2-preview
    litellm_params:
      model: gemini/gemini-embedding-2-preview
      api_key: os.environ/GEMINI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/embeddings \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "gemini-embedding-2-preview",
    "input": "hello world"
  }'

Gemini Embedding 2 Preview FAQ

How much does Gemini Embedding 2 Preview cost?

Gemini Embedding 2 Preview costs $0.20 per 1M input tokens on Google AI Studio.

What is the context window of Gemini Embedding 2 Preview?

Gemini Embedding 2 Preview has an 8,192-token context window.

Which providers offer Gemini Embedding 2 Preview?

Gemini Embedding 2 Preview is available from 2 providers through LiteLLM: Google AI Studio and Google Vertex AI.

How do I call Gemini Embedding 2 Preview with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="gemini/gemini-embedding-2-preview", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/embeddings from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Gemini Embedding 2 Preview support?

Gemini Embedding 2 Preview supports image input and audio input.

When did LiteLLM add Gemini Embedding 2 Preview?

Gemini Embedding 2 Preview was added to LiteLLM's model price file in March 2026.

Is Gemini Embedding 2 Preview being deprecated?

Google AI Studio deprecated gemini/gemini-embedding-2-preview on November 6, 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Google AI Studio, Google Vertex AI.

Provider pages: Google AI Studio, Google Vertex AI.