Direct Embeddings
Turn one string, or a batch of up to 2048 strings, into embedding vectors with a Gloo embedding model. OpenAI-compatible. No guardrails, routing, or streaming.
Guide: Embeddings
Error Reference
Authorizations
Body
OpenAI-compatible embeddings request. Provider-specific parameters are forwarded except reserved fields. stream and provider are not forwarded; dimension, output_dimension, and output_dimensionality are rejected. user is accepted and ignored.
An embedding model's Gloo Model ID (e.g. gloo-openai-text-embedding-3-small). Only models whose output_modalities include embeddings on GET /platform/v2/models are accepted.
"gloo-openai-text-embedding-3-small"
The text to embed: a non-empty string, or an array of 1 to 2048 non-empty strings. Each string must fit within the model's max_input_tokens. Arrays of token IDs are not accepted.
1\SHow each vector is encoded. float requests an array of numbers; base64 requests little-endian float32 bytes as a base64 string. When omitted, the provider's default applies. Providers may not support every encoding.
float, base64 Requested vector width. Support and accepted values depend on the embedding model. Unsupported models or values return 400. The public model catalog reports native dimensions but does not publish shortened-width constraints.
Accepted for OpenAI SDK compatibility and ignored.
Response
Embeddings, one per input string, in input order.

