Mistral: Mistral Embed 2312 contro VoyageAI by MongoDB: voyage-code-4
Un confronto fianco a fianco tra Mistral: Mistral Embed 2312 (0,35 USD / 1M token (≈ 0,31 €)) e VoyageAI by MongoDB: voyage-code-4 (0,42 USD / 1M token (≈ 0,37 €)) con i prezzi in USD e le funzionalità aggiornati dal catalogo di api14. Entrambi funzionano con la stessa API compatibile OpenAI.
Specifiche
| Mistral: Mistral Embed 2312 | VoyageAI by MongoDB: voyage-code-4 | |
|---|---|---|
| Fornitore | Mistral | VoyageAI by MongoDB |
| Ingresso | 0,35 USD / 1M token (≈ 0,31 €) | 0,42 USD / 1M token (≈ 0,37 €) |
| Finestra di contesto | 8192 | 32.000 |
| Output massimo | 6553 | 28.800 |
| Ingresso | text | text |
| Uscita | embeddings | embeddings |
| chiamata di strumenti | ||
| Output strutturato | ||
| Controllo del ragionamento | ||
| Aggiunto | 31 ott 2025 | 13 ago 2026 |
Differenze principali
- Mistral: Mistral Embed 2312 costa il 17% in meno sui token di input.
- VoyageAI by MongoDB: voyage-code-4 legge 3.9× più contesto (32.000 token).
Cambia modello con una stringa
Entrambi i modelli usano lo stesso endpoint e la stessa struttura di richiesta. Cambia il valore di model da "mistralai/mistral-embed-2312" a "mongodb/voyage-code-4", prompt, streaming e tool continuano a funzionare.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.embeddings.create({
"model": "mongodb/voyage-code-4",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Altri confronti
- Amazon: Titan Multimodal Embeddings G1 contro Amazon: Titan Embeddings G1 - Text
- Amazon: Titan Multimodal Embeddings G1 contro Amazon: Titan Text Embeddings V2
- Amazon: Titan Multimodal Embeddings G1 contro Cohere: Embed 5 Fast
- Amazon: Titan Multimodal Embeddings G1 contro Cohere: Embed 5 Pro
- Amazon: Titan Embeddings G1 - Text contro Amazon: Titan Text Embeddings V2
- Amazon: Titan Embeddings G1 - Text contro Cohere: Embed 5 Fast
- Amazon: Titan Embeddings G1 - Text contro Cohere: Embed 5 Pro
- Amazon: Titan Text Embeddings V2 contro Cohere: Embed 5 Fast