Gemini Embedding 2 via the Tokenator API
What the model is for
Gemini Embedding 2 is Google's first multimodal embedding model. We currently support mapping text and images into a unified vector space for semantic search and retrieval-augmented generation (RAG). It supports input context up to 8,192 tokens and flexible output dimensions from 128 to 3,072 (recommended: 768, 1536, or 3,072). Designed for cross-modal similarity — you can embed a text query and retrieve the most relevant images, or vice versa — making it well-suited for multimodal search, recommendation, and document understanding pipelines.
Specification
| Full name | Gemini Embedding 2 |
| API ID | gemini-embedding-2 |
| Model vendor | Gemini |
| Type | Embeddings (vector representations) |
| Context window | 8.2K tokens |
| Tokenator usage multiplier | 2× |
| Input modalities | text |
| Supported API formats | /v1/embeddings |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-11-02 |
Upstream providers
| Provider | Multiplier |
|---|---|
| Unified LLM API | 2× |
A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.
Example request
curl https://api.tokenator.top/v1/embeddings \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-embedding-2", "input": "Hello" }'
See also
FAQ about Gemini Embedding 2
What is the API ID of Gemini Embedding 2?
gemini-embedding-2 — put this into the model field of your request.
What context window does Gemini Embedding 2 have?
8.2K tokens.
How many tokens will a request cost?
input × 2× — embeddings have no output, so you pay for the input text only. See the documentation for details.
How do I call this model?
Through /v1/embeddings only: the chat endpoints refuse such a model. Parameters and examples are in the embeddings documentation.