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
支援的協定:gemini
可用供應商:Vertex
能力:視覺音訊輸入影片輸入
定價
| 類型 | 價格 |
|---|---|
| 輸入 Token | $0.2/M |
| 輸出 Token | $0/M |
| 圖像輸入 | $0.45/M |
| 音訊輸入 | $6.5/M |
| 影片輸入 | $12/M |
程式碼範例
from google import genaiclient = 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。按量計費,無月費。
Google: Gemini Embedding 2 Preview 支援 8K Token 的上下文視窗,最大輸出 8K Token,可處理大型文件並維持長對話。
只需將 base URL 設定為 https://api.ofox.ai/v1,並使用你的 Ofox API Key。API 相容 OpenAI 格式——只需更改 base URL 和 API Key 即可。
Google: Gemini Embedding 2 Preview 支援以下能力:視覺, 音訊輸入, 影片輸入。透過 Ofox.ai 統一 API 存取所有功能。

