Google: Gemini Embedding 001 (batch) kontra OpenAI: Text Embedding Ada 002
Porównanie Google: Gemini Embedding 001 (batch) (0,26 USD / 1M tokenów (≈ 1,03 zł)) i OpenAI: Text Embedding Ada 002 (0,35 USD / 1M tokenów (≈ 1,37 zł)) obok siebie na podstawie aktualnych cen w USD i możliwości z katalogu api14. Oba działają przez to samo API zgodne z OpenAI.
Specyfikacja
| Google: Gemini Embedding 001 (batch) | OpenAI: Text Embedding Ada 002 | |
|---|---|---|
| Dostawca | OpenAI | |
| Wejście | 0,26 USD / 1M tokenów (≈ 1,03 zł) | 0,35 USD / 1M tokenów (≈ 1,37 zł) |
| Okno kontekstu | 20 000 | 8192 |
| Maks. wyjście | 18 000 | 7372 |
| Wejście | text | text |
| Wyjście | embeddings | embeddings |
| Wywołania narzędzi | ||
| Ustrukturyzowane wyjście | ||
| Sterowanie rozumowaniem | ||
| Dodano | 31 paź 2025 | 30 paź 2025 |
Najważniejsze różnice
- Google: Gemini Embedding 001 (batch) jest o 25% tańszy na tokenach wejściowych.
- Google: Gemini Embedding 001 (batch) przyjmuje 2.4× więcej kontekstu (20 000 tokenów).
Zmień jednym ciągiem znaków
Oba modele używają tego samego endpointu i tej samej struktury żądania. Zmień wartość model z "google/gemini-embedding-001:batch" na "openai/text-embedding-ada-002", prompty, streaming i narzędzia działają dalej.
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": "openai/text-embedding-ada-002",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Więcej porównań
- Amazon: Titan Multimodal Embeddings G1 kontra Amazon: Titan Embeddings G1 - Text
- Amazon: Titan Multimodal Embeddings G1 kontra Amazon: Titan Text Embeddings V2
- Amazon: Titan Multimodal Embeddings G1 kontra Cohere: Embed 5 Fast
- Amazon: Titan Multimodal Embeddings G1 kontra Cohere: Embed 5 Pro
- Amazon: Titan Embeddings G1 - Text kontra Amazon: Titan Text Embeddings V2
- Amazon: Titan Embeddings G1 - Text kontra Cohere: Embed 5 Fast
- Amazon: Titan Embeddings G1 - Text kontra Cohere: Embed 5 Pro
- Amazon: Titan Text Embeddings V2 kontra Cohere: Embed 5 Fast