Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

OpenAI Embeddings

by OpenAI

Text turned into numbers for search.

Embeddings and rerankPartial System Degradation · live status

WebsitePricingGitHub

1. Price

No free tier on the pricing page. As reported on the official pricing page, checked Oct 10, 2026.

developers.openai.com/api/docs/pricing

Checked against the maker's official pages, pricing on Oct 10, 2026. Tap a verdict to see its source.How we checkedReport an error

What OpenAI Embeddings does

OpenAI Embeddings is a paid online service that turns a piece of text into a long list of numbers that captures its meaning. Texts about the same thing get similar numbers, so your app can find related articles, products or questions even when the words differ. You keep the numbers in your own database and compare them when someone searches.

  • OpenAI Embeddings is one of 5 APIs in the Embeddings and rerank category on AgentGid.
  • It is not among the 4 that can be started for free.
  • Its official SDK is the 1st most downloaded in the category (156M a week).

What people build with it

Search that understands meaning

A help center where "can't log in" also finds the article called "Reset your password", because the meaning matches, not the words.

"You may also like" suggestions

Show products, recipes or articles whose descriptions are close to the one a visitor is reading.

Sort support tickets by topic

Put each new ticket into the closest category, such as billing, delivery or login, by comparing it with a short description of each category.

Check the bill before a big import

Count the tokens of all your texts on your own computer first, and see what embedding them will cost before you send anything.

Save space with shorter vectors

Ask for fewer numbers per text when you store millions of items, so your database stays smaller and searches stay fast.

Spot duplicate questions Idea

Before a new forum question or idea is posted, show the closest existing ones so people join the old thread instead.

OpenAI Embeddings popularity

156M
SDK downloads a week
+23.7% on the 4-week average
32.2K
GitHub stars, openai/openai-python
SDK downloads per weeknpm openai, pypi openai 156,242,323

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

None

Cheapest plan

No monthly plan

Usage price

$0.02/1M tokens (text-embedding-3-small); $0.13/1M (text-embedding-3-large); $0.10/1M (text-embedding-ada-002)

Plans

Pay-as-you-go per input token; part of the general OpenAI API account.

What one action costs

ActionPrice
1M input tokens, text-embedding-3-small$0.02
1M input tokens, text-embedding-3-large$0.13
1M input tokens, text-embedding-ada-002 (older model)$0.10

As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy. developers.openai.com/api/docs/pricing

Limits

All plans

8,192 tokens per text; at most 2,048 texts in one request

All plans

300,000 tokens in total per request

Usage tiers (Free, Build, Launch, Grow)

Requests and tokens per minute depend on your tier and the model; see the limits page in your account

From the official docs. developers.openai.com/api/reference/resources/embeddings/methods/create.md

Status and incidents

Right now
Partial System Degradation

Partial System Degradation

Last 30 days

21 incidents, 2 of them major

From the official status page, checked Nov 26, 2026. status.openai.com

Key and access

How it signs in

OpenAI API key sent as a Bearer header from your server (Authorization: Bearer $OPENAI_API_KEY)

Environment variable
OPENAI_API_KEY
Safe in browser code
No, keep it on your server
Card at sign-up

Not stated on the pages we read

Steps only a person can do

  • Sign in to the OpenAI platform and create an API key. Put it in .env as OPENAI_API_KEY (kept out of git) and read it on the server only.
  • Add a payment method and buy prepaid credits. No code change; run the token-count script first to see the cost of the first import.

Commercial use and your data

It is a paid online service, not open source. You own the text you send and the numbers you get back, so you may use and even share them. Your text must not break the law or OpenAI's terms of use.

In a paid app
With conditions

You own inputs and outputs; your content must follow the law and OpenAI's Terms of Use.

“You are responsible for ensuring that the content you input to our API does not violate any applicable law or our Terms of Use.” source

redistribute-files
With conditions

The docs say you may share your embeddings online, because you own them; the source texts keep their own rights.

“Yes, customers own their input and output from our models, including in the case of embeddings.” source

client-work
With conditions

Give each client app its own project and service account key instead of a developer's personal key.

“Don't share one developer's key across a team or use that person's identity as the permanent identity of a production application.” source

Trains on what you send

“As of March 1, 2023, data sent to the OpenAI API is not used to train or improve OpenAI models (unless you explicitly opt in to share data with us).”

Keeps your data

Embedding requests are kept in abuse monitoring logs up to 30 days and are not stored as application state; Zero Data Retention eligible for approved customers.

“/v1/embeddings No 30 days None Yes No” source

Where data is stored

Data residency per project for eligible customers (via sales).

“Data residency controls are a project configuration option that allow you to configure the location of infrastructure OpenAI uses to provide services.” source

Errors to handle

401 Incorrect API key provided

The key sent with the request is wrong or was revoked.

Check the key; do not retry unchanged.

429 Rate limit reached for requests

Too many requests or tokens per minute, common during a big import.

Retry with backoff after Retry-After, send texts in batches, or use the Batch API for large imports.

429 credit_balance_exhausted

No prepaid credits left.

Top up credits; retrying does not help.

500 Server error

A problem on OpenAI's side.

Retry after a short wait.

Use it from an agent

Our agent check

4 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP no, status page yes, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

OpenAI Docs MCP (documentation only)

claude mcp add --transport http openaiDeveloperDocs https://developers.openai.com/mcp

npm
npm install openai
PyPI
pip install openai

Alternatives

OpenAI Embeddings This page

from $0.02/1M tokensNo free tier

Voyage AI

Pick Voyage AI when you need embeddings tuned for code or for images, plus rerankers that reorder search results.

from $0.02/1M tokensFree tier

BGE (FlagEmbedding)

Pick BGE when you want open-source embedding models that run on your own server with no per-token bill.

Free (open source)No free tier

Mixedbread

Pick Mixedbread when you want a ready search and indexing service over your files instead of handling raw vectors.

from $0.5 per 1M content tokensFree tier

All embeddings and rerank APIs

Get started

Tell your AI assistant

“Add meaning-based search to my site: on the server, embed each article with OpenAI text-embedding-3-small (key from OPENAI_API_KEY), store the vectors in Postgres with pgvector, embed the search query the same way and return the 5 closest articles.”

  1. Create an OpenAI API key and keep it in OPENAI_API_KEY on the server.

    export OPENAI_API_KEY="your_api_key_here"

    From developers.openai.com/api/docs/quickstart.md

  2. Install the official package (pip install openai or npm install openai) and send your text with the model name.

    from openai import OpenAI
    client = OpenAI()
    
    response = client.embeddings.create(
        input="Your text string goes here", model="text-embedding-3-small"
    )
    
    print(response.data[0].embedding)
    

    From developers.openai.com/api/docs/guides/embeddings.md

  3. Store each vector in a vector database (for example Postgres with pgvector) and search it by similarity.

    From developers.openai.com/api/docs/guides/embeddings.md

First request

curl https://api.openai.com/v1/embeddings \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Hello world",
    "model": "text-embedding-3-small",
    "encoding_format": "float",
    "dimensions": 3
  }'

Mistakes to avoid

Mixing vectors from text-embedding-3-small and text-embedding-3-large (or another vendor) in one search table
Use one model for all stored texts and for the search query; re-embed everything when you change models

Distances between vectors from different models mean nothing.

Storing 3072-number vectors from text-embedding-3-large in a pgvector column and adding a normal HNSW index
Request dimensions of 2000 or fewer, or index the column as halfvec

pgvector indexes plain vectors only up to 2,000 numbers, and text-embedding-3-large returns 3072 by default.

Sending a whole book chapter, an empty string, or 5,000 texts in one request
Split texts under 8,192 tokens, skip empty ones, and send at most 2,048 texts (300,000 tokens) per request

The endpoint rejects inputs over these limits.

Counting tokens with a different tokenizer or by splitting on spaces
tiktoken.get_encoding("cl100k_base")

The docs name cl100k_base for the third-generation embedding models.

Comparing a query vector with every stored vector in a loop in your app code
Keep vectors in a vector database (for example pgvector) and let it find the nearest ones

The docs recommend a vector database for searching many vectors quickly.

Questions

What does it cost?

Billed per input token. List prices per 1M tokens are $0.02 for text-embedding-3-small and $0.13 for text-embedding-3-large.

How many numbers does one text become?

1536 for text-embedding-3-small and 3072 for text-embedding-3-large by default; you can ask for fewer.

Can I share or publish the vectors I get?

Yes. The docs say customers own their input and output, including embeddings.

How do I compare two vectors?

The docs recommend cosine similarity; since the vectors have length 1, a dot product gives the same result faster.

Does OpenAI keep or train on the texts I embed?

It does not train on them; safety logs for embedding requests are kept up to 30 days.