Embeddings

Creates dense vector embeddings representing the input text. OpenAI-compatible.

POST /api/v1/embeddings
New to embeddings? Start with the Embeddings guide. This page is the field-by-field reference.
Body application/json
model string Required
Embedding model ID. List the options at /models?type=embedding.
input string | string[] Required
A single string, or an array of strings to embed in one request.
encoding_format string default: float
float returns vectors as JSON arrays; base64 packs them into a smaller string for big batches.
dimensions integer
Requested output dimensionality, for models that support truncation (e.g. Matryoshka embeddings).
input_type string default: document
What the text is for: document for text you store and search over, query for a search against it, or none to embed the text exactly as sent. Pendra formats the input the way the model was trained to read each kind. See Queries and documents.
user string
Accepted for OpenAI compatibility and ignored.

Response

An OpenAI-shaped list envelope. data holds one embedding per input string, preserving input order via index — see the example response.

Notes

  • A request can run up to ~30 minutes, but a single call should be far faster — batch large workloads in groups of a few hundred strings rather than one huge request.
  • Embedding dimensionality and similarity scaling depend on the model — check the model catalogue.
  • Embedding requests appear under Embeddings in the console usage view.