The OpenAI Embeddings contract, for drop-in use with the OpenAI SDKs. Requests are translated to the unified contract and served exactly like the native POST /v1/embeddings.

Authentication

Authenticated with a secret key (rd_sk_…) or a client token (carrying the ai.embed scope). A publishable key is rejected 403.

Request body

Example

Response

200 OK — an OpenAI embeddings list:
With encoding_format: "base64", each embedding is a base64-encoded float32 string instead of a number array.

Errors

Errors use the OpenAI envelope; see the error mapping on the chat-completions page.