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
TypeEmbeddings (vector representations)
Context window8.2K tokens
Tokenator usage multiplier2×
Input modalitiestext
Supported API formats/v1/embeddings
Upstream providers1
Current statusavailable
Data updated2026-11-02

Upstream providers

ProviderMultiplier
Unified LLM API2×

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/embeddings \
  -H "Authorization: Bearer sk-your-tokenator-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-embedding-2",
    "input": "Hello"
  }'

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.