Last refreshed 2026-05-16. Next refresh: weekly.
Why use text-embedding-ada-002 on OpenAI API?
OpenAI API offers text-embedding-ada-002 with pay-as-you-go pricing at $0.10/1M input tokens. OpenAI is a leading AI research and deployment company dedicated to developing safe and beneficial artificial general intelligence (AGI) for humanity.
Compare text-embedding-ada-002 across 2 providers to find the best fit for your use caseInput / 1M
$0.10
Output / 1M
-
Cache
Not sourced
Batch
Not sourced
Setup recipe
Python + curlInstall
pip install openaiAuth
export OPENAI_API_KEY=...Call
import os
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from env
response = client.chat.completions.create(Model ID
text-embedding-ada-002Request example
import os
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
model="text-embedding-ada-002",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".
- The examples expect OPENAI_API_KEY; rename it only if your application config maps the new variable.
Compare text-embedding-ada-002 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Vercel AI Gateway | $0.10 | — |
| OpenAI API | $0.10 | — |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.10 |
Capabilities
No model capability flags are currently sourced.
About text-embedding-ada-002
OpenAI's Ada-002 text embedding model. Legacy but widely deployed; succeeded by text-embedding-3 series. 1536 output dimensions.
Get Started
Model Specs
Released2022-12-15
Context8k
Knowledge cutoff2021-09