Skip to main content
POST
/
text
/
embed
Generate embedding for text
curl --request POST \
  --url https://api.trytldw.ai/v1/text/embed \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "People walking on the street"
}'
{
  "embedding": [
    123
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
text
string
required

The text to embed. Max length 300 characters

Examples:

"People walking on the street"

Response

Successful Response

embedding
number[]
required

The embedding of the text, a list of 512 floats

I