Last refreshed 2026-05-16. Next refresh: weekly.
Why use text-embedding-3-small on OpenAI API?
OpenAI API offers text-embedding-3-small with pay-as-you-go pricing at $0.02/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-3-small across 2 providers to find the best fit for your use caseInput / 1M
$0.020
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-3-smallRequest example
import os
from openai import OpenAI
client = OpenAI() # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
model="text-embedding-3-small",
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-3-small Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Vercel AI Gateway | $0.02 | — |
| OpenAI API | $0.02 | — |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.02 |
Capabilities
No model capability flags are currently sourced.
About text-embedding-3-small
OpenAI's efficient text embedding model with 1536 output dimensions. Higher performance than text-embedding-ada-002 at lower cost.
Get Started
Model Specs
Released2024-01-25
Context8k
Knowledge cutoff2021-09