gemini-embedding-2-preview

Google · Retrieval

Text embedding

NixAPI price, from

Input$0.0895
Output$0.3579

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

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 statusMultiplierInputOutput
Aistudio-Gemini-2…×0.4474$0.0895$0.3579
Aistudio-Gemini-3…×0.7456$0.1491$0.5965
Vertex-Gemini-3…×1.521$0.3042$1.217

Per token · 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.0895 per 1M input tokens and $0.3579 per 1M output tokens in the Aistudio-Gemini-2 group, about 55% 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 3 routing groups: Aistudio-Gemini-2, Aistudio-Gemini-3, Vertex-Gemini-3. The lowest price is in Aistudio-Gemini-2.

More from Google

Compare all Google models →