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


Overview
Analysis
Gemini Embedding 2 vs voyage-code-4 at a glance
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.