Embeddings
Authorizations
AuthorizationstringRequired
Bearer authentication with JWT
Body
inputstring · nullableRequired
dimensionsinteger · int32 · nullableOptional
Responses
200
OK
application/json
objectstring · nullableOptional
modelstring · nullableOptional
400
Bad Request
application/json
401
Unauthorized
application/json
402
Payment Required
application/json
403
Forbidden
application/json
404
Not Found
application/json
500
Internal Server Error
post/inference/embeddings
POST /inference/embeddings HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"input": "text",
"dimensions": 1
}{
"object": "text",
"data": [
{
"object": "text",
"index": 1,
"embedding": [
1
]
}
],
"model": "text",
"usage": {
"prompt_tokens": 1,
"total_tokens": 1
}
}Last updated
