Google: Gemini Embedding 001 (batch) contra Perplexity: Embed V1 4B
Uma comparação lado a lado entre Google: Gemini Embedding 001 (batch) (US$ 0,26 / 1M fragmentos (≈ R$ 1,44)) e Perplexity: Embed V1 4B (US$ 0,11 / 1M fragmentos (≈ R$ 0,57)) 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
| Google: Gemini Embedding 001 (batch) | Perplexity: Embed V1 4B | |
|---|---|---|
| Provedor | Perplexity | |
| Entrada | US$ 0,26 / 1M fragmentos (≈ R$ 1,44) | US$ 0,11 / 1M fragmentos (≈ R$ 0,57) |
| Janela de contexto | 20.000 | 32.000 |
| Saída máxima | 18.000 | 28.800 |
| Entrada | text | text |
| Saída | embeddings | embeddings |
| chamada de ferramentas | ||
| Saída estruturada | ||
| Controle de raciocínio | ||
| Adicionado em | 31 de out. de 2025 | 16 de mar. de 2026 |
Principais diferenças
- Perplexity: Embed V1 4B é 60% mais barato nos tokens de entrada.
- Perplexity: Embed V1 4B lê 1.6× mais contexto (32.000 tokens).
Troque com uma string
Os dois modelos usam o mesmo endpoint e o mesmo formato de requisição. Mude o valor de model de "google/gemini-embedding-001:batch" para "perplexity/pplx-embed-v1-4b", 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": "perplexity/pplx-embed-v1-4b",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Mais comparações
- 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