Embeddings
Converts the provided text into numerical vector representations (embeddings) for semantic analysis, similarity search, and machine learning applications.
Authorizations
AuthorizationstringRequired
Bearer authentication with JWT
Body
inputstring | nullableRequired
dimensionsinteger · int32 | nullableOptional
Responses
200
Successfully generated embeddings for the input text
application/json
400
Invalid request - missing input text, token limit exceeded, or balance update failed
application/json
401
Unauthorized
application/json
402
Insufficient credits to process the request
application/json
403
Forbidden
application/json
404
Configured embeddings model not found
application/json
500
Internal server error during embeddings generation
post
/inference/embeddingsPOST /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
}
}