Embeddings.
POST · /v1/embeddings — OpenAI-compatible embeddings endpoint. Pass-through routing to any embedding model in the catalog.
Quick example
Generate an embedding
Request body
Parameters
| Field | Type | Req? | Description |
|---|---|---|---|
model | string | ✓ | Embedding model slug (/models with category=embedding). |
input | string / array | ✓ | Single string or array of up to 2048 strings. |
dimensions | integer | — | Override embedding dimensions (only some models support this). |
encoding_format | string | — | "float" (default) or "base64". |
user | string | — | End-user identifier — surfaces in traces. |
200 response
Response shape
Guardrails
Limited pipeline on embeddings
Embeddings requests skip the prompt injection detector and tool policy enforcement (no tools/messages), but PII masking still applies — text input is scanned and masked per your policy group PII mode before being sent upstream.
The _anoman response extension is present but contains only routing + cost data on this endpoint.
Browse embedding models.
Filter the catalog by category=embedding to see all available options.