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

Compare voyage-code-4 from MongoDB and all-MiniLM-L12-v2 from sentence-transformers 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 mongodb
voyage-code-4
Favicon for sentence-transformers
all-MiniLM-L12-v2

Overview

voyage-code-4
Author
MongoDB
all-MiniLM-L12-v2
Author
sentence-transformers
voyage-code-4
Context length
—
all-MiniLM-L12-v2
Context length
—
voyage-code-4
Reasoning
No
all-MiniLM-L12-v2
Reasoning
No
voyage-code-4
Input modalities
Text
all-MiniLM-L12-v2
Input modalities
Text
voyage-code-4
Output modalities
Embeddings
all-MiniLM-L12-v2
Output modalities
Embeddings

Analysis

voyage-code-4 vs all-MiniLM-L12-v2 at a glance

voyage-code-4
Input price
Not applicable
all-MiniLM-L12-v2
Input price
Not applicable
voyage-code-4
Output price
Not applicable
all-MiniLM-L12-v2
Output price
Not applicable
voyage-code-4
Price
$0.12/M tokens
all-MiniLM-L12-v2
Price
$0.005/M tokens
voyage-code-4
Context window
Not applicable
all-MiniLM-L12-v2
Context window
Not applicable
voyage-code-4
Latency (p50)
0.56 s
all-MiniLM-L12-v2
Latency (p50)
0.85 s
voyage-code-4
Throughput (p50)
Not available
all-MiniLM-L12-v2
Throughput (p50)
Not available
voyage-code-4
Provided by
MongoDB
all-MiniLM-L12-v2
Provided by
sentence-transformers

Frequently asked questions

Is voyage-code-4 cheaper than all-MiniLM-L12-v2?

all-MiniLM-L12-v2 is cheaper than voyage-code-4 on OpenRouter at $0.005/M tokens for input tokens, compared with $0.12/M tokens for voyage-code-4.

Which supports a longer input, voyage-code-4 or all-MiniLM-L12-v2?

voyage-code-4 supports a longer input at up to 32,000 tokens, compared with 512 tokens for all-MiniLM-L12-v2.

What input types do voyage-code-4 and all-MiniLM-L12-v2 embed?

voyage-code-4 and all-MiniLM-L12-v2 both embed text on OpenRouter.

Which is faster, voyage-code-4 or all-MiniLM-L12-v2?

voyage-code-4 is faster on OpenRouter with a median embedding latency of 0.56 seconds, compared with 0.85 seconds for all-MiniLM-L12-v2.