Create embeddings
Embeddings
Embeddings
POST /v1/embeddings — dense vector embeddings for text.
POST
Create embeddings
OpenAI-compatible embeddings endpoint.
Returns standard
{ data: [{ embedding: [...], index: 0 }], usage: {...} }.
Supported models
Browse withGET /v1/models?modality=embedding or see Models. OpenAI, Google, Alibaba and open-source embedding models available.
Batching
input can be an array of up to 2 048 strings. Each string is a separate embedding; all share the same pricing.
Dimensionality reduction
On supported models (e.g.text-embedding-3-small, text-embedding-3-large):
Authorizations
API key in format: Bearer inf_***
Headers
Optional request ID for tracking
Body
application/json

