Embeddings
POST
/v1/embeddingsOpenAI-compatible vector embeddings API. Input forms, dimensions, encoding, and additional fields remain subject to the selected model and provider.
Request body
Embedding model ID, for example alibaba/text-embedding-v4
Text, token IDs, or a batch of texts or token-ID arrays to embed
Output vector dimension when supported by the selected model; there is no universal dimension list
Embedding encoding format. Provider support determines whether float or base64 is available