Create embeddings

Als Markdown anzeigen

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

Authentifizierung

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.

Anfrage

This endpoint expects an object.
modelstringErforderlich
inputstring or list of stringsErforderlich

Text (or array of texts) to embed.

Antwort

The embedding vectors.
objectstring
modelstring
datalist of objects
usageobject

Fehler

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