# voyage-code-4 vs all-MiniLM-L12-v2

Source: https://openrouter.ai/compare/mongodb/voyage-code-4/sentence-transformers/all-minilm-l12-v2

## Overview

| Attribute | voyage-code-4 | all-MiniLM-L12-v2 |
| --- | --- | --- |
| Author | MongoDB | sentence-transformers |
| Reasoning | No | No |
| Input modalities | Text | Text |
| Output modalities | Embeddings | Embeddings |
| Input price | Not applicable | Not applicable |
| Output price | Not applicable | Not applicable |
| Price | $0.12/M tokens | $0.005/M tokens |
| Context window | Not applicable | Not applicable |
| Latency (p50) | 0.53 s | 0.63 s |
| Throughput (p50) | Not available | Not available |

## voyage-code-4 or all-MiniLM-L12-v2: which should you choose?

### Choose voyage-code-4 for:

- faster embedding latency (0.53 s vs 0.63 s)

## Model pages

- [voyage-code-4](https://openrouter.ai/mongodb/voyage-code-4) ([llms.txt](https://openrouter.ai/mongodb/voyage-code-4/llms.txt))
- [all-MiniLM-L12-v2](https://openrouter.ai/sentence-transformers/all-minilm-l12-v2) ([llms.txt](https://openrouter.ai/sentence-transformers/all-minilm-l12-v2/llms.txt))
