Skip to main content
POST
/
embed
/
single
Create single embedding
curl --request POST \
  --url https://api.dev.knowmio.com/api/embed/single \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "value": "<string>",
  "organizationId": "<string>"
}
'
{
  "embedding": [
    123
  ],
  "usage": {
    "tokens": 123
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Body

application/json
value
string
required

Text to embed

organizationId
string
required

Organization ID - Required when using API Key authentication. Optional with session authentication (defaults to session's active organization).

Response

Embedding generated successfully

embedding
number[]
usage
object