Skip to content
Dashboard

text-embedding-ada-002

text-embedding-ada-002 is OpenAI's second-generation embedding model that unified multiple prior embedding endpoints into a single model, producing 1536-dimensional vectors suitable for search, clustering, classification, and recommendations.

Input price
Starting at Input $0.10, Per 1M tokens
import { embed } from 'ai';
const result = await embed({
model: 'openai/text-embedding-ada-002',
value: 'Sunny day at the beach',
})
Read docs

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Input
Capabilities
ZDR
No Training
Free Tier
Release Date
$0.10/M
12/15/2022
$0.10/M
12/15/2022

Copy link to headingMore models by OpenAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free Tier
Release Date
1.1M2.9 s56 tps
$10/M+2 more
$50/M+2 more
Read$1/M
Write$12.50/M
$10/K
+4
azure logo
openai logo
09/04/2026
1.1M2.4 s156 tps
$0.20/M+2 more
$1.20/M+2 more
Read$0.02/M
Write$0.25/M
$10/K
+4
azure logo
bedrock logo
openai logo
07/09/2026
1.1M2.6 s69 tps
$2/M+2 more
$10/M+2 more
Read$0.20/M
Write$2.50/M
$10/K
+4
azure logo
bedrock logo
openai logo
07/09/2026
1.1M2.6 s94 tps
$2/M+2 more
$12/M+2 more
Read$0.20/M
Write$2.50/M
$10/K
+4
azure logo
bedrock logo
openai logo
07/09/2026
1.1M3.5 s88 tps
$2.50/M+2 more
$15/M+2 more
Read$0.25/M
$10/K
+4
azure logo
openai logo
03/05/2026
400K4.4 s208 tps
$0.05/M
$0.40/M
Read$0.005/M
$14/K
+3
azure logo
openai logo
08/07/2025

Copy link to headingAbout text-embedding-ada-002

text-embedding-ada-002 was released on December 15, 2022 as a major consolidation of OpenAI's embedding model lineup. Previously, OpenAI offered multiple first-generation embedding endpoints across different model sizes (Davinci, Curie, Babbage, Ada) and task types (similarity, search, classification). text-embedding-ada-002 unified all of these into a single model that produces 1536-dimensional vectors usable across search, clustering, classification, and recommendation tasks.

At launch, text-embedding-ada-002 was a substantial improvement over the first-generation models, outperforming the previous best (Davinci) on most benchmarks while being significantly cheaper and producing more compact vectors. It became the standard embedding model used by the majority of OpenAI API consumers.

The model has since been superseded by the text-embedding-3 family released in January 2024. text-embedding-3-small delivers higher MTEB scores at reduced cost with the same default 1536 dimensions, making it a direct upgrade path. text-embedding-3-large pushes accuracy further with 3072 dimensions and substantial multilingual improvements. For existing deployments that haven't yet migrated, text-embedding-ada-002 remains available and functional.

Copy link to headingWhat To Consider When Choosing a Provider

  • Configuration: text-embedding-ada-002 has been succeeded by the text-embedding-3 family, which offers both better performance and lower cost. For new projects, text-embedding-3-small is a drop-in replacement with higher quality at reduced cost.
  • Configuration: If your vector database is already indexed with ada-002 embeddings, note that you cannot mix embeddings from different models in the same index. Migration requires re-embedding your corpus.
  • Zero Data Retention: Zero Data Retention is available for this model. It is offered on a per-provider and model basis. See the documentation for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen to Use text-embedding-ada-002

Best for

  • Existing deployments: Applications with vector indexes already built on ada-002 embeddings that can't yet re-index
  • Legacy pipeline maintenance: Systems that depend on ada-002's specific embedding characteristics
  • Backward compatibility: Workflows pinned to ada-002 for consistency with historical data
  • Migration baselines: Benchmarking against ada-002 when evaluating newer embedding models

Consider alternatives when

  • New projects: Text-embedding-3-small delivers higher quality at reduced cost with the same 1536-dimension default
  • Maximum quality: Text-embedding-3-large for the highest accuracy on retrieval-critical workloads
  • Multilingual retrieval: Both text-embedding-3 variants significantly outperform ada-002 on MIRACL
  • Cost optimization: Text-embedding-3-small offers immediate savings with no quality regression

text-embedding-ada-002 was the standard OpenAI embedding model for over a year, consolidating a fragmented lineup into a single practical endpoint. While newer models now offer better performance and lower cost, it remains available through AI Gateway for existing deployments that haven't yet migrated.

Copy link to headingFrequently Asked Questions

  • Should I use text-embedding-ada-002 for a new project?

    No. text-embedding-3-small is a direct upgrade: higher quality, lower cost, and the same default 1536-dimension output. Use the newer model for new projects.

  • Can I mix ada-002 and text-embedding-3 vectors in the same index?

    No. Embeddings from different models are not compatible. Migration requires re-embedding your entire corpus with the new model.

  • What is the output dimension of text-embedding-ada-002?

    1536 dimensions, fixed. Unlike the text-embedding-3 family, ada-002 does not support the dimensions parameter for flexible vector sizes.

  • How does text-embedding-ada-002 compare to text-embedding-3-small on benchmarks?

    text-embedding-3-small scores 1.3 points higher on MTEB (62.3% vs 61.0%) and 12.6 points higher on MIRACL (44.0% vs 31.4%), at lower cost.

  • How does AI Gateway handle authentication for text-embedding-ada-002?

    AI Gateway accepts a single API key or OIDC token for all requests. You don't embed OpenAI credentials in your application; AI Gateway routes and authenticates on your behalf.

  • What are typical latency characteristics?

    This page shows live throughput and time-to-first-token metrics measured across real AI Gateway embedding traffic.

Your use is subject to OpenAI's Terms & Privacy Policies.