Skip to content

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.

index.ts
import { embed } from 'ai';
const result = await embed({
model: 'openai/text-embedding-ada-002',
value: 'Sunny day at the beach',
})

Providers

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
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Azure
Legal:Terms
Privacy
$0.10/M
12/15/2022
OpenAI
Legal:Terms
Privacy
$0.10/M
12/15/2022