- Home
- Compare
Gemini Embedding 2 Preview vs voyage-code-4
Compare Gemini Embedding 2 Preview 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 Preview vs voyage-code-4 at a glance
Frequently asked questions
Is Gemini Embedding 2 Preview cheaper than voyage-code-4?
Gemini Embedding 2 Preview 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 Preview 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 Preview.
What input types do Gemini Embedding 2 Preview and voyage-code-4 embed?
Gemini Embedding 2 Preview embeds text, images, files such as PDFs, audio, and video on OpenRouter, while voyage-code-4 embeds text.
Which is faster, Gemini Embedding 2 Preview or voyage-code-4?
Gemini Embedding 2 Preview is faster on OpenRouter with a median embedding latency of 0.28 seconds, compared with 0.56 seconds for voyage-code-4.