Skip to content

text-embedding-3-small

text-embedding-3-small delivers higher MTEB scores than ada-002 at lower cost, with a 1536-dimension default that drops into existing pipelines and a flexible dimensions parameter for further storage savings.

index.ts
import { embed } from 'ai';
const result = await embed({
model: 'openai/text-embedding-3-small',
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.02/M
01/25/2024
OpenAI
Legal:Terms
Privacy
$0.02/M
01/25/2024