Text Embedding 004
Specs
- Context
- —
- Max output
- —
- Input price
- —
- Output price
- —
- Released
- 2024-04-09
Context
- Context window
- —
- Max input
- 2K
- Max output
- —
Pricing
- Not published
Modalities
- Input
- Text
- Output
- Embedding
API
- API types
Reasoning
- Reasoning
- No
Info
- Status
- Retired
- Released
- 2024-04-09
- Knowledge cutoff
- —
Features
- Not published
How to call
1 provider
googlemodel = text-embedding-004
embeddings
POSThttps://generativelanguage.googleapis.com/v1beta/models/{model}:embedContent
JSON
Standard format
{
"id": "text-embedding-004",
"object": "model",
"created": 1712620800,
"owned_by": "google",
"name": "Text Embedding 004",
"api": {
"types": [
"embeddings"
]
},
"limits": {
"context": null,
"input": 2048,
"output": null
},
"modalities": {
"input": [
"text"
],
"output": [
"embedding"
]
},
"reasoning": {
"supported": false,
"efforts": []
},
"pricing": null,
"features": [],
"info": {
"status": "retired",
"release_date": "2024-04-09",
"knowledge_cutoff": null,
"description": null,
"docs": "https://ai.google.dev/gemini-api/docs/deprecations",
"verified_at": "2026-10-11"
}
}Official sources
3