# Gemini Embedding 2 Preview vs voyage-code-4

Source: https://openrouter.ai/compare/google/gemini-embedding-2-preview/mongodb/voyage-code-4

## Overview

| Attribute | Gemini Embedding 2 Preview | voyage-code-4 |
| --- | --- | --- |
| Author | Google | MongoDB |
| Reasoning | No | No |
| Input modalities | Text, Image, File, Audio, Video | Text |
| Output modalities | Embeddings | Embeddings |
| Input price | Not applicable | Not applicable |
| Output price | Not applicable | Not applicable |
| Price | $0.20/M tokens | $0.12/M tokens |
| Context window | Not applicable | Not applicable |
| Latency (p50) | 0.28 s | 0.56 s |
| Throughput (p50) | Not available | Not available |

## Gemini Embedding 2 Preview or voyage-code-4: which should you choose?

### Choose Gemini Embedding 2 Preview for:

- faster embedding latency (0.28 s vs 0.56 s)

## Model pages

- [Gemini Embedding 2 Preview](https://openrouter.ai/google/gemini-embedding-2-preview) ([llms.txt](https://openrouter.ai/google/gemini-embedding-2-preview/llms.txt))
- [voyage-code-4](https://openrouter.ai/mongodb/voyage-code-4) ([llms.txt](https://openrouter.ai/mongodb/voyage-code-4/llms.txt))
