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 nameGemini Embedding 2
API IDgemini-embedding-2
Model vendorGemini
TypeText model (chat / completions)
Context window8.2K tokens
Max output8.2K tokens
Image inputno
Tokenator usage multiplier1.4×
Input modalitiestext, audio, video, file
Supported API formats/v1/chat/completions /v1/responses /v1/messages
Upstream providers1
Current statusavailable
Data updated2026-09-15

Upstream providers

ProviderMultiplier
Unified LLM API1.4×

A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.

Example request

curl
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.

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.