Gemini Embedding 2 vs voyage-code-4

Compare Gemini Embedding 2 from Google and voyage-code-4 from MongoDB on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for google
Gemini Embedding 2
Favicon for mongodb
voyage-code-4

Overview

Gemini Embedding 2
Author
Google
voyage-code-4
Author
MongoDB
Gemini Embedding 2
Context length
—
voyage-code-4
Context length
—
Gemini Embedding 2
Reasoning
No
voyage-code-4
Reasoning
No
Gemini Embedding 2
Input modalities
Text, Image, Audio, Video, File
voyage-code-4
Input modalities
Text
Gemini Embedding 2
Output modalities
Embeddings
voyage-code-4
Output modalities
Embeddings

Analysis

Gemini Embedding 2 vs voyage-code-4 at a glance

Gemini Embedding 2
Input price
Not applicable
voyage-code-4
Input price
Not applicable
Gemini Embedding 2
Output price
Not applicable
voyage-code-4
Output price
Not applicable
Gemini Embedding 2
Price
$0.20/M tokens
voyage-code-4
Price
$0.12/M tokens
Gemini Embedding 2
Context window
Not applicable
voyage-code-4
Context window
Not applicable
Gemini Embedding 2
Latency (p50)
0.31 s
voyage-code-4
Latency (p50)
0.56 s
Gemini Embedding 2
Throughput (p50)
Not available
voyage-code-4
Throughput (p50)
Not available
Gemini Embedding 2
Provided by
Google
voyage-code-4
Provided by
MongoDB

Frequently asked questions

Is Gemini Embedding 2 cheaper than voyage-code-4?

Gemini Embedding 2 is priced at $0.20/M tokens on OpenRouter, while voyage-code-4 is priced at $0.12/M tokens.

Which supports a longer input, Gemini Embedding 2 or voyage-code-4?

voyage-code-4 supports a longer input at up to 32,000 tokens, compared with 8,192 tokens for Gemini Embedding 2.

What input types do Gemini Embedding 2 and voyage-code-4 embed?

Gemini Embedding 2 embeds text, images, files such as PDFs, audio, and video on OpenRouter, while voyage-code-4 embeds text.

Which is faster, Gemini Embedding 2 or voyage-code-4?

Gemini Embedding 2 is faster on OpenRouter with a median embedding latency of 0.31 seconds, compared with 0.56 seconds for voyage-code-4.