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 上下文視窗
8K 最大輸出 token
發布日期: 2026-03-10
支援的協定:Geminigemini
可用供應商:GoogleCloudVertex
能力:視覺音訊輸入影片輸入

供应商

GoogleCloudVertex
輸入 Token
$0.2/M
輸出 Token
$0/M
圖像輸入
$0.45/M
音訊輸入
$6.5/M
影片輸入
$12/M
接入协议
Geminigemini

程式碼範例

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])

常見問題

Google: Gemini Embedding 2 Preview 在 Ofox.ai 上的價格為輸入 $0.2/M/百萬 Token,輸出 $0/百萬 Token。按量計費,無月費。