Google: Gemini Embedding 001 (batch) 対 VoyageAI by MongoDB: voyage-code-4
api14カタログの最新のUSD料金と機能をもとに、Google: Gemini Embedding 001 (batch)($0.26 / 100万トークン (≈ ¥41))とVoyageAI by MongoDB: voyage-code-4($0.42 / 100万トークン (≈ ¥66))を並べて比較します。どちらも同じOpenAI互換APIで動作します。
仕様
| Google: Gemini Embedding 001 (batch) | VoyageAI by MongoDB: voyage-code-4 | |
|---|---|---|
| プロバイダー | VoyageAI by MongoDB | |
| 入力 | $0.26 / 100万トークン (≈ ¥41) | $0.42 / 100万トークン (≈ ¥66) |
| コンテキストウィンドウ | 20,000 | 32,000 |
| 最大出力 | 18,000 | 28,800 |
| 入力 | text | text |
| 出力 | embeddings | embeddings |
| ツール呼び出し | ||
| 構造化出力 | ||
| 推論の調整 | ||
| 追加日 | 2025/10/31 | 2026/08/13 |
主な違い
- Google: Gemini Embedding 001 (batch)は入力トークンが38%安くなっています。
- VoyageAI by MongoDB: voyage-code-4は1.6倍長いコンテキスト(32,000トークン)を読み取れます。
文字列1つで切り替え
どちらのモデルも同じエンドポイントとリクエスト形式を使います。modelの値を"google/gemini-embedding-001:batch"から"mongodb/voyage-code-4"に変えるだけで、プロンプト、ストリーミング、ツールはそのまま動きます。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.embeddings.create({
"model": "mongodb/voyage-code-4",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
その他の比較
- Amazon: Titan Multimodal Embeddings G1 対 Amazon: Titan Embeddings G1 - Text
- Amazon: Titan Multimodal Embeddings G1 対 Amazon: Titan Text Embeddings V2
- Amazon: Titan Multimodal Embeddings G1 対 Cohere: Embed 5 Fast
- Amazon: Titan Multimodal Embeddings G1 対 Cohere: Embed 5 Pro
- Amazon: Titan Embeddings G1 - Text 対 Amazon: Titan Text Embeddings V2
- Amazon: Titan Embeddings G1 - Text 対 Cohere: Embed 5 Fast
- Amazon: Titan Embeddings G1 - Text 対 Cohere: Embed 5 Pro
- Amazon: Titan Text Embeddings V2 対 Cohere: Embed 5 Fast