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 访问所有功能。

