
Gemini Embedding 2
About Google Cloud Gemini Embedding 2
Gemini Embedding 2 è il primo modello di embedding multimodale di Google. Attualmente supportiamo la mappatura di testi e immagini in uno spazio vettoriale unificato per la ricerca semantica e la generazione potenziata dal recupero (RAG).
Google Cloud Gemini Embedding 2 è un modello di Google Cloud disponibile su Eden AI tramite la sua API compatibile con OpenAI, a partire da 0,2 $ / 1M token. Chiamalo con la stessa chiave API di tutti gli altri modelli di Eden AI, inviando il suo ID modello all’endpoint /v3/embeddings, oppure tramite qualsiasi SDK OpenAI, con elaborazione in regioni globali.
Tasks and prices
Google Cloud Gemini Embedding 2 is available on Eden AI for 1 tasks. È servito tramite l’API compatibile con OpenAI di Eden AI: invia il suo ID modello all’endpoint /v3/embeddings con la tua chiave API di Eden AI.
Parameters
What you send and what you get back when you call Google Cloud Gemini Embedding 2 through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Input
- model (obbligatorio): testo. L'ID del modello, nel formato provider/modello.
- input (obbligatorio): testo. Il testo da incorporare, oppure un elenco di testi.
Risposta
- data
Estimate your monthly cost
Enter your monthly volume for Embeddings to compare Google Cloud Gemini Embedding 2 with its cheapest alternatives.
Call Google Cloud Gemini Embedding 2 with Eden AI
Invia l’ID del modello all’endpoint compatibile con OpenAI /v3/embeddings. Funziona anche qualsiasi SDK OpenAI: imposta il suo URL di base su https://api.edenai.run/v3.
import requests
response = requests.post(
"https://api.edenai.run/v3/embeddings",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "google/gemini-embedding-2",
"input": "Quel vituperabile xenofobo zelante assaggia il whisky ed esclama alleluja",
},
)
print(response.json())
curl https://api.edenai.run/v3/embeddings \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/gemini-embedding-2", "input": "Quel vituperabile xenofobo zelante assaggia il whisky ed esclama alleluja"}'
const response = await fetch("https://api.edenai.run/v3/embeddings", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "google/gemini-embedding-2",
input: "Quel vituperabile xenofobo zelante assaggia il whisky ed esclama alleluja",
}),
});
console.log(await response.json());
Questions about Google Cloud Gemini Embedding 2
On Eden AI, Google Cloud Gemini Embedding 2 costs 0,2 $ / 1M token for Embeddings. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Google Cloud Gemini Embedding 2 is available for: Embeddings. Input: Testo. Output: data.
Eden AI offers Embeddings from 15 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Embeddings
Other Embeddings models you can call with the same key, cheapest first.
More from Google Cloud
Other Google Cloud models on Eden AI, for every task.
.avif)









