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.
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 |
|---|