Google: Gemini Embedding 001 (batch) contro OpenAI: Text Embedding 3 Small
Un confronto fianco a fianco tra Google: Gemini Embedding 001 (batch) (0,26 USD / 1M token (≈ 0,23 €)) e OpenAI: Text Embedding 3 Small (0,07 USD / 1M token (≈ 0,06 €)) con i prezzi in USD e le funzionalità aggiornati dal catalogo di api14. Entrambi funzionano con la stessa API compatibile OpenAI.
Specifiche
| Google: Gemini Embedding 001 (batch) | OpenAI: Text Embedding 3 Small | |
|---|---|---|
| Fornitore | OpenAI | |
| Ingresso | 0,26 USD / 1M token (≈ 0,23 €) | 0,07 USD / 1M token (≈ 0,06 €) |
| Finestra di contesto | 20.000 | 8192 |
| Output massimo | 18.000 | 7372 |
| Ingresso | text | text |
| Uscita | embeddings | embeddings |
| chiamata di strumenti | ||
| Output strutturato | ||
| Controllo del ragionamento | ||
| Aggiunto | 31 ott 2025 | 30 ott 2025 |
Differenze principali
- OpenAI: Text Embedding 3 Small costa il 73% in meno sui token di input.
- Google: Gemini Embedding 001 (batch) legge 2.4× più contesto (20.000 token).
Cambia modello con una stringa
Entrambi i modelli usano lo stesso endpoint e la stessa struttura di richiesta. Cambia il valore di model da "google/gemini-embedding-001:batch" a "openai/text-embedding-3-small", prompt, streaming e tool continuano a funzionare.
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-3-small",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
Altri confronti
- Amazon: Titan Multimodal Embeddings G1 contro Amazon: Titan Embeddings G1 - Text
- Amazon: Titan Multimodal Embeddings G1 contro Amazon: Titan Text Embeddings V2
- Amazon: Titan Multimodal Embeddings G1 contro Cohere: Embed 5 Fast
- Amazon: Titan Multimodal Embeddings G1 contro Cohere: Embed 5 Pro
- Amazon: Titan Embeddings G1 - Text contro Amazon: Titan Text Embeddings V2
- Amazon: Titan Embeddings G1 - Text contro Cohere: Embed 5 Fast
- Amazon: Titan Embeddings G1 - Text contro Cohere: Embed 5 Pro
- Amazon: Titan Text Embeddings V2 contro Cohere: Embed 5 Fast