VoyageAI by MongoDB: voyage-code-4 contra OpenAI: Text Embedding Ada 002
Una comparativa lado a lado de VoyageAI by MongoDB: voyage-code-4 (0,42 US$ / 1M fragmentos (≈ 0,37 €)) y OpenAI: Text Embedding Ada 002 (0,35 US$ / 1M fragmentos (≈ 0,31 €)) con precios actuales en USD y capacidades del catálogo de api14. Ambos funcionan a través de la misma API compatible con OpenAI.
Especificaciones
| VoyageAI by MongoDB: voyage-code-4 | OpenAI: Text Embedding Ada 002 | |
|---|---|---|
| Proveedor | VoyageAI by MongoDB | OpenAI |
| Entrada | 0,42 US$ / 1M fragmentos (≈ 0,37 €) | 0,35 US$ / 1M fragmentos (≈ 0,31 €) |
| Ventana de contexto | 32.000 | 8192 |
| Salida máxima | 28.800 | 7372 |
| Entrada | text | text |
| Salida | embeddings | embeddings |
| Llamadas a herramientas | ||
| Salida estructurada | ||
| Control del razonamiento | ||
| Añadido | 13 ago 2026 | 30 oct 2025 |
Diferencias clave
- OpenAI: Text Embedding Ada 002 es 17% más barato en tokens de entrada.
- VoyageAI by MongoDB: voyage-code-4 lee 3.9× más contexto (32.000 tokens).
Cambia con una sola cadena
Ambos modelos usan el mismo endpoint y la misma estructura de solicitud. Cambia el valor de model de "mongodb/voyage-code-4" a "openai/text-embedding-ada-002": los prompts, el streaming y las herramientas siguen funcionando.
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": "openai/text-embedding-ada-002",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Más comparativas
- Amazon: Titan Multimodal Embeddings G1 contra Amazon: Titan Embeddings G1 - Text
- Amazon: Titan Multimodal Embeddings G1 contra Amazon: Titan Text Embeddings V2
- Amazon: Titan Multimodal Embeddings G1 contra Cohere: Embed 5 Fast
- Amazon: Titan Multimodal Embeddings G1 contra Cohere: Embed 5 Pro
- Amazon: Titan Embeddings G1 - Text contra Amazon: Titan Text Embeddings V2
- Amazon: Titan Embeddings G1 - Text contra Cohere: Embed 5 Fast
- Amazon: Titan Embeddings G1 - Text contra Cohere: Embed 5 Pro
- Amazon: Titan Text Embeddings V2 contra Cohere: Embed 5 Fast