text-embedding-004 は Google の前世代のテキスト埋め込みモデルで、2024 年 4 月 9 日にリリースされました。
- 入力
- テキスト $0.025/M
- 出力
- テキスト
スペックと制限
モデル
| モダリティ | テキスト → テキスト |
|---|
- Google's previous-generation text embedding model. Its shutdown date on Google's own deprecation page is 2026-01-14, with gemini-embedding-2 named as the replacement
- that date is in the past as of this transcription, so the model is retired upstream rather than merely scheduled. Dimensionality and input limits are deliberately not recorded here: the model no longer appears in Google's current model reference, so there is no current vendor page to transcribe them from, and the standing rule is that an unverifiable value is left absent rather than carried over from memory
30 秒で Text Embedding 004 を使う
OpenAI 互換。base_url を差し替えるだけで、SDK はそのまま。POST /v1/embeddings
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="text-embedding-004",
messages=[{"role": "user", "content": "Summarize this diff"}],
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "text-embedding-004",
messages: [{ role: "user", content: "Summarize this diff" }],
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-004",
"messages": [{"role": "user", "content": "Hello"}]
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "text-embedding-004",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("text-embedding-004")
.addUserMessage("Summarize this diff")
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));Text Embedding 004 について
- すでに稼働していません。
- Google 自身の非推奨ページは停止日を 2026 年 1 月 14 日とし、代替として gemini-embedding-2 を挙げており、その日付はすでに過ぎています。
- Google の現行のモデルリファレンスにも掲載されていないため、本ページでは次元数、入力上限、タスクタイプを記載していません。
- 転記できる現行のベンダーページが存在せず、このカタログの方針は、検証できない値は記憶から補わずに空のままにする、というものだからです。
- 古い実装から来た場合、Google が示す移行先は gemini-embedding-2 です。
よくある質問
Text Embedding 004 API は無料で試せますか?
はい。新規アカウントには 10 回のトライアル呼び出しと最大 $1 の無料クレジットが付与され、カード登録は不要です。支払い方法を追加する前に、実際のワークロードで Text Embedding 004 を試すには十分な量です。
Text Embedding 004 は何が得意ですか?
2026 年 1 月 14 日に上流で停止、Google は gemini-embedding-2 を代替に指定、ベンダーは仕様を公開しなくなった。全体像はベンダー公式のリリースノートに基づく「このモデルについて」セクションをご覧ください。
Text Embedding 004 の料金はいくらですか?
Synthorai 上の Text Embedding 004 は入力 100 万トークンあたり $0.025、出力 100 万トークンあたり $0 です。ベンダー定価のままで、プラットフォーム手数料はありません。
Text Embedding 004 はプロンプトキャッシュに対応していますか?
Text Embedding 004 には現在 Synthorai 上でキャッシュ読み取り割引がありません。ゲートウェイ上の他のモデルではプロンプトキャッシュが引き続き利用できます。キャッシュ対応の代替モデルは料金表をご覧ください。 プロバイダー別キャッシュ比較 →
Text Embedding 004 を利用するには?
お使いの OpenAI SDK の base_url を "https://synthorai.io/v1" に向け、model="text-embedding-004" を設定すれば完了です。API キー 1 本でゲートウェイ上のすべてのモデルを利用できます。
関連モデル
比較
このページの値はすべてベンダー自身のドキュメント(上部にリンク)から転記し、確認した日付を付しています。価格はカタログ全体で比較しますが、ベンダーごとに定義が異なる仕様値は差異を明記するにとどめ、図表で比較はしません。当社が測定した数値はなく、スコアも付けていません。