新帳號 免費註冊,送 10 次呼叫,最高 $1,免綁卡。
此模型已從現行目錄下架,以下資訊為封存內容。 供應商建議改用 gemini-embedding-2。

Text Embedding 004

發布於 2024-04-09

embedding

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

依據 Google 官方文件 ↗

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)

關於 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 的輸入價是每百萬 token $0.025,輸出價是每百萬 token $0。這就是供應商官網價,平台不加價。

Text Embedding 004 支援提示詞快取(prompt caching)嗎?

Text Embedding 004 目前在 Synthorai 上沒有快取讀取折扣。閘道上的其他模型仍支援提示詞快取,可以到價格表查看支援快取的替代模型。 各供應商快取比較 →

如何開通 Text Embedding 004?

把現有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "text-embedding-004" 就可以了。一把 API 金鑰就能呼叫閘道上的所有模型。

相關模型

比較

本頁每一個數值都摘錄自供應商自己的文件(連結見上方),並附上查核日期。價格是放在整個目錄裡比較;各家供應商定義不一樣的規格,只說明差異,不畫成圖表比較。這裡沒有任何數據是我們自己量測的,也不做評分。

取得 API 金鑰 算算你的成本 →