June 🎉 GPT 15% Off 🎉 All series, all month 🔥Mehr erfahren
Gemini

Google: Gemini Embedding 2 Preview

Embedding
google/gemini-embedding-2-preview

Gemini Embeddings is a multimodal embedding technique that converts text, audio, video, and image data into numerical vectors that can be processed by machine learning algorithms, especially large models. These vector representations are designed to capture the semantic meaning and context of the data they represent.

Kontextfenster
8K
Max. Ausgabe-Tokens
8K
Veröffentlicht
2026-03-10
Fähigkeiten
VisionAudio-EingabeVideo-Eingabe
Verfügbare Anbieter
GoogleCloudVertex
Unterstützte Protokolle
Geminigemini

Providers

GoogleCloudVertex
Eingabe-Tokens
$0.2/M
Ausgabe-Tokens
$0/M
Bildeingabe
$0.45/M
Audioeingabe
$6.5/M
Videoeingabe
$12/M
Protocols
Geminigemini

Code-Beispiele

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.ai/gemini"},
)
response = client.models.embed_content(
model="google/gemini-embedding-2-preview",
contents="Hello, world!",
)
print(response.embeddings[0].values[:5])

Häufig gestellte Fragen

Google: Gemini Embedding 2 Preview auf Ofox.ai kostet $0.2/M pro Million Eingabe-Tokens und $0 pro Million Ausgabe-Tokens. Pay-as-you-go, keine monatlichen Gebühren.