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.

8K fenêtre de contexte
8K tokens de sortie max
Publié: 2026-03-10
Protocoles supportés:Geminigemini
Fournisseurs disponibles:GoogleCloudVertex
Capacités:VisionEntrée audioEntrée vidéo

Tarifs

TypePrix
Tokens d'entrée$0.2/M
Tokens de sortie$0/M
Entrée image$0.45/M
Entrée audio$6.5/M
Entrée vidéo$12/M

Exemples de code

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "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])

Questions fréquentes

Google: Gemini Embedding 2 Preview sur Ofox.ai coûte $0.2/M par million de tokens d'entrée et $0 par million de tokens de sortie. Paiement à l'usage, sans frais mensuels.

Discord

Rejoignez notre serveur Discord

Discord