Skip to content

Gemini Embedding 2

Embeddings
google/gemini-embedding-2

Embed · 3072 dimensions · Apr 2026 · 4 upstreams

Gemini Embedding 2 is Google's first multimodal embedding model, mapping text, images, video, audio and PDFs into one 3,072-dimension space. This listing takes text input only, with an 8,192-token window.

Needs your own keyTo use Gemini Embedding 2, add a key from OpenRouter, ZenMux, OneToken or 1 more. AnyRouter adds no fee.
max input
8K
dimensions
3072
input / 1M (list)
$0.20
routes
4

Upstreams

4
  1. 1OpenRouterYour keynot addedBilled to your key
  2. 2ZenMuxYour keynot addedBilled to your key
  3. 3OneTokenYour keynot addedBilled to your key
  4. 4Vercel AI GatewayYour keynot addedBilled to your key

Quick start

POST /api/v1/embeddings
curl
curl https://anyrouter.dev/api/v1/embeddings \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-embedding-2",
    "input": "The quick brown fox jumps over the lazy dog"
  }'

Details

Owner
Google
Kind
Embeddings
Released
Apr 2026
Context
8K
Data policy
Provider retention
Endpoint
/api/v1/embeddings