Amazon: Titan Text Embeddings V2 mot VoyageAI by MongoDB: voyage-code-4
En jämförelse sida vid sida av Amazon: Titan Text Embeddings V2 (0,07 US$ / 1M textdelar (≈ 0,69 kr)) och VoyageAI by MongoDB: voyage-code-4 (0,42 US$ / 1M textdelar (≈ 4,11 kr)) med aktuella USD-priser och funktioner från api14-katalogen. Båda körs via samma OpenAI-kompatibla API.
Specifikationer
| Amazon: Titan Text Embeddings V2 | VoyageAI by MongoDB: voyage-code-4 | |
|---|---|---|
| Leverantör | Amazon | VoyageAI by MongoDB |
| Indata | 0,07 US$ / 1M textdelar (≈ 0,69 kr) | 0,42 US$ / 1M textdelar (≈ 4,11 kr) |
| Kontextfönster | 8 192 | 32 000 |
| Max utdata | 7 372 | 28 800 |
| Indata | text | text |
| Utdata | embeddings | embeddings |
| Verktygsanrop | ||
| Strukturerad utdata | ||
| Styrning av resonemang | ||
| Tillagd | 26 okt. 2026 | 13 aug. 2026 |
Viktiga skillnader
- Amazon: Titan Text Embeddings V2 är 83% billigare på indata-tokens.
- VoyageAI by MongoDB: voyage-code-4 läser 3.9× mer kontext (32 000 tokens).
Byt med en sträng
Båda modellerna använder samma endpoint och anropsformat. Ändra model-värdet från "amazon/titan-embed-text-v2" till "mongodb/voyage-code-4", promptar, streaming och verktyg fortsätter att fungera.
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));
Fler jämförelser
- Amazon: Titan Multimodal Embeddings G1 mot Amazon: Titan Embeddings G1 - Text
- Amazon: Titan Multimodal Embeddings G1 mot Amazon: Titan Text Embeddings V2
- Amazon: Titan Multimodal Embeddings G1 mot Cohere: Embed 5 Fast
- Amazon: Titan Multimodal Embeddings G1 mot Cohere: Embed 5 Pro
- Amazon: Titan Embeddings G1 - Text mot Amazon: Titan Text Embeddings V2
- Amazon: Titan Embeddings G1 - Text mot Cohere: Embed 5 Fast
- Amazon: Titan Embeddings G1 - Text mot Cohere: Embed 5 Pro
- Amazon: Titan Text Embeddings V2 mot Cohere: Embed 5 Fast