Skip to content
01

Providers + pricing

CapabilitiesProvider details
● Your own key · billed by your provider · AnyRouter fee $0
OpenRouter
openrouter-byok
$0.20list$0list
Unavailable
● Free pool · donated keys · not available for this model — donate a key
02

Try it

POST /api/v1/embeddings
import OpenAI from "openai" const client = new OpenAI({  apiKey: process.env.ANYROUTER_API_KEY,  baseURL: "https://anyrouter.dev/api/v1",}) const resp = await client.embeddings.create({  model: "google/gemini-embedding-2",  input: "The quick brown fox jumps over the lazy dog",})console.log(resp.data[0].embedding.slice(0, 8))
Set ANYROUTER_API_KEY · edits on the demo update this code
Live demo
Cosine similarity
—
03

Uptime + latency

—recent checks · all routes

No health checks recorded for this model yet.

24h
No traffic in the last 24h.
More performance detail
Usage analytics

Loading usage…

Uptime & Health
No uptime data yet

These providers haven't been health-probed for this model yet. The router still routes around upstreams that fail live requests — uptime fills in once probe history accrues.

Gemini Embedding 2

  • OpenRouter
Embedtext → [0.12, -0.4, …]3072dimensions
Context
8K
Input
$0.20
Output
$0
TTFT
—
Uptime
—
Routes
1
04

Your access

Credits
Your own key · AnyRouter fee $0

Run Gemini Embedding 2 on your own key — your requests are billed by the provider. Pool callers pay AnyRouter credits.

No BYOK keys configured for this model yet.

Share a key with the pool to earn credits for every request it serves, covering your plan cost.

Free poolnot in pool yetDonate key →
Create API key for this model
Embedding vectors
Vector dimensions3,072
Max input8,192 tokens
Price$0.2 / 1M tokens
Request parameters
inputmodeldimensionsencoding_format
ArchitectureTransformer
Categoryembedding
ReleasedApr 22, 2026
Modalities
→
Capabilities
Embeddings are fixed-length vectors — compare them with cosine similarity for semantic search, RAG retrieval, clustering, and deduplication. Embed queries and documents with the same model, or the distances are meaningless.
05

About

Gemini Embedding 2 is Google's first multimodal embedding model, mapping text, images, video, audio, and PDFs into one 3,072-dimension vector space for cross-modal semantic search, document retrieval, and recommendations over 100+ languages. Upstream accepts 8,192 input tokens and MRL-truncates to 128–3,072 dimensions. AnyRouter exposes the text path only — the OpenAI-compatible /embeddings body is a text `input`, so the extra upstream modalities are deliberately not declared here.

Released 2026-04-22 · params: input · model · dimensions · encoding_format

Share cards
Gemini Embedding 2 share card
Gemini Embedding 2
OpenRouter upstream share card
OpenRouter upstream
Back to models