VoyageAI by MongoDB: voyage-4 vs VoyageAI by MongoDB: voyage-code-4
Uma comparação lado a lado entre VoyageAI by MongoDB: voyage-4 (US$ 0,21 / 1M tokens) e VoyageAI by MongoDB: voyage-code-4 (US$ 0,42 / 1M tokens) com preços em USD e recursos atuais do catálogo do api14. Os dois funcionam pela mesma API compatível com OpenAI.
Especificações
| VoyageAI by MongoDB: voyage-4 | VoyageAI by MongoDB: voyage-code-4 | |
|---|---|---|
| Provedor | Voyage AI | Voyage AI |
| Entrada | US$ 0,21 / 1M tokens | US$ 0,42 / 1M tokens |
| Janela de contexto | 32.000 | 32.000 |
| Saída máxima | 28.800 | 28.800 |
| Entrada | text | text |
| Saída | embeddings | embeddings |
| Tool calling | ||
| Saída estruturada | ||
| Controle de raciocínio | ||
| Adicionado em | 27 de jul. de 2026 | 13 de ago. de 2026 |
Principais diferenças
- VoyageAI by MongoDB: voyage-4 é 50% mais barato nos tokens de entrada.
Troque com uma string
Os dois modelos usam o mesmo endpoint e o mesmo formato de requisição. Mude o valor de model de "voyageai/voyage-4" para "voyageai/voyage-code-4", prompts, streaming e ferramentas continuam 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": "voyageai/voyage-code-4",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Mais comparações
- VoyageAI by MongoDB: voyage-4 vs VoyageAI by MongoDB: voyage-4-large
- VoyageAI by MongoDB: voyage-4 vs VoyageAI by MongoDB: voyage-4-lite
- VoyageAI by MongoDB: voyage-4 vs VoyageAI by MongoDB: voyage-multimodal-3.5
- VoyageAI by MongoDB: voyage-4-large vs VoyageAI by MongoDB: voyage-4-lite
- VoyageAI by MongoDB: voyage-4-large vs VoyageAI by MongoDB: voyage-code-4
- VoyageAI by MongoDB: voyage-4-large vs VoyageAI by MongoDB: voyage-multimodal-3.5
- VoyageAI by MongoDB: voyage-4-lite vs VoyageAI by MongoDB: voyage-code-4
- VoyageAI by MongoDB: voyage-4-lite vs VoyageAI by MongoDB: voyage-multimodal-3.5