Create embeddings

View as Markdown

OpenAI embeddings schema. model must be an embeddings-kind model (e.g. mistral/mistral-embed). No streaming.

Authentication

AuthorizationBearer

A Kontinent API key: Authorization: Bearer sk-kt-<43 base62 chars> (49 chars total). Shown once at creation; only a SHA-256 hash is stored. No expiry; revocation takes effect within ~30 s.

Request

This endpoint expects an object.
modelstringRequired
inputstring or list of stringsRequired

Text (or array of texts) to embed.

Response

The embedding vectors.
objectstring
modelstring
datalist of objects
usageobject

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error