LLM Reference
OpenAI API

text-embedding-3-small on OpenAI API

text-embedding-3 · OpenAI

Serverless

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 case
Input / 1M
$0.020
Output / 1M
-
Cache
Not sourced
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
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-small

Request 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

ProviderInput (per 1M)Output (per 1M)
Vercel AI Gateway$0.02
OpenAI API$0.02

Pricing

TypePrice (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

Related Models on OpenAI API