gemini-embedding-2-preview
NixAPI price, from
USD per 1M tokens · via group Aistudio-Gemini-3 · Official list price $0.2 / $0.8Save 25%
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 →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache 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
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!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="gemini-embedding-2-preview",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "gemini-embedding-2-preview",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);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.