New Sign up free, 10 calls on us. Up to $1, no card needed.
This model has been retired from the live catalogue; the information below is archived. The vendor recommends migrating to gemini-embedding-2.

Text Embedding 004

Released 2024-04-09

embedding

text-embedding-004 is Google's previous-generation text embedding model, released on 9 April 2024.

Input
text $0.025/M
Output
text

Specs & limits

Model

Modalities text → text
  • 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

per Google official docs ↗

Use Text Embedding 004 in 30 seconds

OpenAI-compatible: swap the base_url, keep your 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)

About Text Embedding 004

  • It is no longer live: Google's own deprecation page gives its shutdown date as 14 January 2026 and names gemini-embedding-2 as the replacement, and that date has already passed.
  • The model no longer appears in Google's current model reference either, which is why this page records no dimensionality, input limit or task types for it: there is no current vendor page to transcribe them from, and the rule this catalogue follows is that an unverifiable value is left absent rather than carried over from memory.
  • If you are arriving here from an older integration, the migration target Google names is gemini-embedding-2.

FAQ

Is the Text Embedding 004 API free to try?

Yes: new accounts get 10 trial calls and up to $1 in free credit, no card required. That's enough to try Text Embedding 004 against your real workload before adding a payment method.

What is Text Embedding 004 best at?

Retired upstream on 14 January 2026; Google names gemini-embedding-2 as the replacement; specifications no longer published by the vendor. See the About section for the full picture from the vendor's own release notes.

How much does Text Embedding 004 cost?

Text Embedding 004 costs $0.025 per million input tokens and $0 per million output tokens on Synthorai. That is the provider's list price, with no platform markup.

Does Text Embedding 004 support prompt caching?

Text Embedding 004 has no cache-read discount on Synthorai today. Prompt caching still applies to other models on the gateway; see the pricing table for cache-enabled alternatives. Provider caching comparison →

How do I get access to Text Embedding 004?

Point your existing OpenAI SDK at base_url="https://synthorai.io/v1", set model="text-embedding-004", and you're done. One API key covers every model on the gateway.

Related models

Compare

Every value on this page is transcribed from the vendor's own documentation, linked above, and carries the date it was checked. Prices are compared across the catalogue; specification values that vendors define differently are shown with the difference stated rather than charted. Nothing here is measured by us, and nothing is scored.

Get your API key Compare your cost →