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 | Text model (chat / completions) |
| Context window | 8.2K tokens |
| Max output | 8.2K tokens |
| Image input | no |
| Tokenator usage multiplier | 1.4× |
| Input modalities | text, audio, video, file |
| Supported API formats | /v1/chat/completions /v1/responses /v1/messages |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-09-15 |
Upstream providers
| Provider | Multiplier |
|---|---|
| Unified LLM API | 1.4× |
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/chat/completions \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-embedding-2", "messages": [{"role": "user", "content": "Hello"}] }'
Compatible tools
The model can be used in any tool that accepts a custom base URL: Claude Code, Codex CLI, OpenCode, Cursor, Cline, Kilo Code, Cherry Studio, OpenClaw.
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; max output is 8.2K tokens.
How many tokens will a request cost?
(input + output) × 1.4×. See the documentation for details.
Which tools support this model?
Any tool that accepts a custom base URL: Claude Code, Codex CLI, OpenCode, Cursor, Cline, Kilo Code. Setup guides are in the integrations section.