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

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Body

application/json
values
string[]
required

Texts to embed

organizationId
string
required

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

maxParallelCalls
integer
default:3

Maximum parallel API calls

Required range: 1 <= x <= 10

Response

Embeddings generated successfully

embeddings
number[][]
usage
object