gemini-embedding-2-preview

Google · Retrieval

Text embedding

NixAPI price, from

Input$0.1491
Output$0.5965

USD per 1M tokens · via group Aistudio-Gemini-3 · Official list price $0.2 / $0.8Save 25%

Get your API key →

About gemini-embedding-2-preview

The latest model gemini-embedding-2-preview is the first multimodal embedding model in the Gemini API. It maps text, images, video, audio, and documents into a unified embedding space, enabling cross-modal search, classification, and clustering in over 100 languages.

Price by routing group

Pick a group in the console when you create a key. Status is live from the router. Live status by group →

GroupGroup statusModel statusMultiplierInputOutputCache readCache write
Aistudio-Gemini-3…×0.7456$0.1491$0.5965——
Vertex-Gemini-2…×0.7605$0.1521$0.6084——
Vertex-Gemini-3…×1.521$0.3042$1.217——
Aistudio-Gemini-4…×1.6155$0.3231$1.292——

USD per 1M tokens

Supported endpoints

geminiopenaiEmbedding (compatible format)Embedding (format 1)

Call gemini-embedding-2-preview in one request

Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.

curl https://api.nixapi.com/v1/chat/completions \
  -H "Authorization: Bearer $NIXAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-embedding-2-preview",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Full API reference →

Questions about gemini-embedding-2-preview

How much does gemini-embedding-2-preview cost on NixAPI?

From $0.1491 per 1M input tokens and $0.5965 per 1M output tokens in the Aistudio-Gemini-3 group, about 25% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.

How do I call gemini-embedding-2-preview?

Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "gemini-embedding-2-preview".

Which routing groups serve gemini-embedding-2-preview?

gemini-embedding-2-preview is available in 4 routing groups: Aistudio-Gemini-3, Vertex-Gemini-2, Vertex-Gemini-3, Aistudio-Gemini-4. The lowest price is in Aistudio-Gemini-3.

More from Google

Compare all Google models →