POST
/
text
/
embed
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

Example:

"People walking on the street"

Response

200
application/json
Successful Response
embedding
number[]
required

The embedding of the text, a list of 512 floats