Skip to main content
OpenAI-compatible endpoint to generate text embeddings — dense vectors of a text for retrieval, clustering, classification or RAG. Billed per input token.

Available models

Basic example

Response:

Batching

input also accepts an array (up to 2048 items):
data in the response is ordered to match the input.

Reduce dimensions

-3-* models let you request a lower dimensionality (useful to shrink storage in your vector DB):
Note: price is per input token, not per dimension. Reducing dimensions doesn’t reduce the embedding cost — only your storage cost and search latency.

Zero Data Retention

Same rules as /chat/completions — set zdr: true or configure your guardrail. OpenAI’s text-embedding-3-* is on the verified list.

Managed vector store

Coming: POST /v1/vector-stores for hosted collections, upload and semantic query without running your own Pinecone/pgvector. For now, use the endpoint directly and store vectors wherever your infrastructure lives.