embeddings
Create Embedding
Changed onOpenAI-compatible embeddings endpoint.
Authentication modes:
- Master key + user field: Use specified user (must exist)
- API key + user field: Use specified user (must exist)
- API key without user field: Use the shared "default" user
A priced response carries its cost on usage as cost_usd (a six-decimal USD string) and pricing_source, as a chat completion does; an unpriced one carries neither.
post/api/v1/embeddings
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
Request body
Response
Successful Response
Changes
- info
added the new optional request property
- info
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking