Embeddings

Generates embeddings (vector representations) for the provided text input.

post

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
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
  }
}