Available now
Google
gemini-embedding-2-preview
Embedding8.2K
InputFree
OutputFree
TypeEmbedding
Endpointsembedding
Performance
Loading performance data...
§ 01
Pricing
| Input price | $0.00 · 1M tokens |
| Output price | $0.00 · 1M tokens |
| Context window | 8.2K tokens |
| Compatible endpoints | embedding |
| Vendor |
§ 02
Call gemini-embedding-2-preview from your code
Point any OpenAI-compatible SDK at UnoRouter and request the model by name. Replace YOUR_API_KEY with a real key from your dashboard.
bash
curl https://api.unorouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-embedding-2-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'§ 03
Frequently asked questions
How much does gemini-embedding-2-preview cost per 1M tokens?
Input is priced at $0.00 per 1M tokens, output at $0.00 per 1M tokens. Billing is per token, no rounding to batch sizes.
How do I access gemini-embedding-2-preview via API?
Send requests to the UnoRouter /v1/chat/completions endpoint with model=gemini-embedding-2-preview. Any OpenAI-compatible client library works. Authentication uses a standard Bearer token.
What is the context window of gemini-embedding-2-preview?
gemini-embedding-2-preview supports a context window of 8.2K tokens, shared between your prompt and the model's response.
§ 04
Similar models
Try gemini-embedding-2-preview now
Create an API key and start making requests in under a minute.