Google: Gemini Embedding 001 (batch) contra VoyageAI by MongoDB: voyage-code-4
Una comparativa lado a lado de Google: Gemini Embedding 001 (batch) (0,26 US$ / 1M fragmentos (≈ 0,23 €)) y VoyageAI by MongoDB: voyage-code-4 (0,42 US$ / 1M fragmentos (≈ 0,37 €)) 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
| Google: Gemini Embedding 001 (batch) | VoyageAI by MongoDB: voyage-code-4 | |
|---|---|---|
| Proveedor | VoyageAI by MongoDB | |
| Entrada | 0,26 US$ / 1M fragmentos (≈ 0,23 €) | 0,42 US$ / 1M fragmentos (≈ 0,37 €) |
| Ventana de contexto | 20.000 | 32.000 |
| Salida máxima | 18.000 | 28.800 |
| Entrada | text | text |
| Salida | embeddings | embeddings |
| Llamadas a herramientas | ||
| Salida estructurada | ||
| Control del razonamiento | ||
| Añadido | 31 oct 2025 | 13 ago 2026 |
Diferencias clave
- Google: Gemini Embedding 001 (batch) es 38% más barato en tokens de entrada.
- VoyageAI by MongoDB: voyage-code-4 lee 1.6× 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 "google/gemini-embedding-001:batch" a "mongodb/voyage-code-4": 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": "mongodb/voyage-code-4",
"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