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 最大出力トークン
リリース日: 2026-03-10
対応プロトコル:gemini
利用可能なプロバイダー:Vertex
機能:Vision音声入力動画入力
料金
| タイプ | 料金 |
|---|---|
| 入力トークン | $0.2/M |
| 出力トークン | $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])
関連モデル
よくある質問
Ofox.aiでのGoogle: Gemini Embedding 2 Previewの料金は、入力100万トークンあたり$0.2/M、出力100万トークンあたり$0です。従量課金制、月額料金なし。
Google: Gemini Embedding 2 Previewは8Kトークンのコンテキストウィンドウと最大8Kトークンの出力に対応。大規模ドキュメントの処理や長い会話の維持が可能です。
ベースURLをhttps://api.ofox.ai/v1に設定し、Ofox APIキーを使用するだけ。OpenAI互換APIなので、既存コードのベースURLとAPIキーを変更するだけです。
Google: Gemini Embedding 2 Previewは以下の機能に対応:Vision, 音声入力, 動画入力。Ofox.ai統合APIですべての機能にアクセスできます。