Text Embedding Preview API Pricing
As of October 10, 2026, Text Embedding Preview costs $0.00625 per 1M input tokens on Google Vertex AI. It has a 3,072-token context window.
- Input
- $0.00625 / 1M tokens
- Output
- $0 / 1M tokens
- Context window
- 3,072 tokens
- Providers
- 1
- Added to LiteLLM
- April 2024
Text Embedding Preview pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Google Vertex AIsnapshot 0409 | vertex_ai/text-embedding-preview-0409 | $0.00625 | $0 | 3K |
What Text Embedding Preview costs in practice
Embedding 10,000 documents of 500 tokens each
| Google Vertex AI | $0.03125 |
Use Text Embedding Preview with LiteLLM
Call Text Embedding Preview through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/embeddings. LiteLLM tracks the cost of every request at these prices.
from litellm import embedding
response = embedding(
model="vertex_ai/text-embedding-preview-0409",
input=["hello world"],
)model_list:
- model_name: text-embedding-preview
litellm_params:
model: vertex_ai/text-embedding-preview-0409
vertex_project: os.environ/VERTEX_PROJECT
vertex_location: os.environ/VERTEX_LOCATIONcurl http://0.0.0.0:4000/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "text-embedding-preview",
"input": "hello world"
}'Text Embedding Preview FAQ
How much does Text Embedding Preview cost?
Text Embedding Preview costs $0.00625 per 1M input tokens on Google Vertex AI.
What is the context window of Text Embedding Preview?
Text Embedding Preview has a 3,072-token context window.
Which providers offer Text Embedding Preview?
Text Embedding Preview is available from Google Vertex AI through LiteLLM, using the model name vertex_ai/text-embedding-preview-0409.
How do I call Text Embedding Preview with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="vertex_ai/text-embedding-preview-0409", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/embeddings from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
When did LiteLLM add Text Embedding Preview?
Text Embedding Preview was added to LiteLLM's model price file in April 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
LiteLLM docs: Google Vertex AI.
Provider pages: Google Vertex AI.
