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. Parameters not listed here are forwarded to the model provider unchanged.
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 returns an array of numbers; base64 returns the little-endian float32 bytes as a base64 string. When omitted, the provider's default applies (an array of floats).
float, base64 Number of dimensions to return, for models that support shortened embeddings (such as the OpenAI text-embedding-3 models). Omit it for other models.
Accepted for OpenAI SDK compatibility and ignored.
Response
Embeddings, one per input string, in input order.

