google logo
google

Google: Gemini Embedding 2

Source description (English)

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

Overview

Model specifications

Context
8,192 tokens
Maximum output
7,372 tokens
Architecture
text+image+file+audio+video->embeddings
Tokenizer
Gemini
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.2
per 1M tokens
Image input
$0.45
per 1M tokens
File input
$0.45
per 1M tokens
Audio input
$6.5
per 1M tokens
Video input
$12
per 1M tokens
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/embeddings \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-embedding-2","input":"Your text here"}'
Capabilities

InputOutput

Input
textimagefileaudiovideo
Output
embeddings
API

Supported API parameters

Available providers

4 providers

Checked: September 16, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Google

Not provided
Context
8K
Maximum output
7K
Input
$0.2
Output
Free
Cache read
Not provided
Cache write
Not provided

Google

Not provided
Context
8K
Maximum output
7K
Input
$0.2
Output
Free
Cache read
Not provided
Cache write
Not provided

Google AI Studio

Not provided
Context
8K
Maximum output
7K
Input
$0.2
Output
Free
Cache read
Not provided
Cache write
Not provided

Google

Not provided
Context
8K
Maximum output
7K
Input
$0.22
Output
Free
Cache read
Not provided
Cache write
Not provided
google

4 models

All models