Create embeddings
Converts text (or, for models that support it, multimodal content) into vector embeddings. Request and response shapes match OpenAI's embeddings API, so it works directly with client.embeddings.create(). input accepts a single string or an array of strings.
/api/v1/embeddingsAuthorizations
AuthorizationrequiredAPI key as bearer token in the Authorization header.
Body
modelrequiredThe embeddings model to use, provider-qualified, e.g. "openai/text-embedding-3-small".
"openai/text-embedding-3-small"inputrequiredThe text to embed. Accepts a single string, or an array of strings to embed multiple inputs in one request. Some models additionally accept structured multimodal content items, forwarded to the upstream as-is; actual support depends on the model.
"The quick brown fox"encoding_formatEncoding format, forwarded to the upstream as-is with no local validation; supported values depend on the upstream.
"float"dimensionsThe number of dimensions for the output vector, forwarded to the upstream as-is with no local validation; only some models support custom dimensions, and the upstream decides the behavior (typically ignore or error) when unsupported.
providerProvider routing preferences (order, only, ignore, allow_fallbacks, sort, …). Only forwarded and honored on certain model routes; unsupported routes drop it silently and never send it upstream.