VoyageAI by MongoDB: voyage-code-4 mot Perplexity: Embed V1 4B
En jämförelse sida vid sida av VoyageAI by MongoDB: voyage-code-4 (0,42 US$ / 1M textdelar (≈ 4,15 kr)) och Perplexity: Embed V1 4B (0,11 US$ / 1M textdelar (≈ 1,04 kr)) med aktuella USD-priser och funktioner från api14-katalogen. Båda körs via samma OpenAI-kompatibla API.
Specifikationer
| VoyageAI by MongoDB: voyage-code-4 | Perplexity: Embed V1 4B | |
|---|---|---|
| Leverantör | VoyageAI by MongoDB | Perplexity |
| Indata | 0,42 US$ / 1M textdelar (≈ 4,15 kr) | 0,11 US$ / 1M textdelar (≈ 1,04 kr) |
| Kontextfönster | 32 000 | 32 000 |
| Max utdata | 28 800 | 28 800 |
| Indata | text | text |
| Utdata | embeddings | embeddings |
| Verktygsanrop | ||
| Strukturerad utdata | ||
| Styrning av resonemang | ||
| Tillagd | 13 aug. 2026 | 16 mars 2026 |
Viktiga skillnader
- Perplexity: Embed V1 4B är 75% billigare på indata-tokens.
Byt med en sträng
Båda modellerna använder samma endpoint och anropsformat. Ändra model-värdet från "mongodb/voyage-code-4" till "perplexity/pplx-embed-v1-4b", 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": "perplexity/pplx-embed-v1-4b",
"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