Embeddings

Create embeddings

Creates an embedding vector representing the input text.

post/v1/embeddings

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/embeddings
  • Auth: HTTP bearer

Headers

X-TokenLab-Delivery-Policy'auto' | 'verified' | 'official'

Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Verified first and may switch once to Official only before output, request acceptance, or persistent resource creation.

Request body

modelstring required

ID of the model to use

encoding_format'float' | 'base64'

Output format

dimensionsinteger

Output vector dimensions

userstring

End-user identifier

Example request

{
  "model": "text-embedding-3-small"
}

Response

Successful response

object'list' required
modelstring required

Changes

No recorded changes to this operation across all 1 revision of this API.