For the complete documentation index, see llms.txt. This page is also available as Markdown.

Embeddings

Generates embeddings for 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

OK

application/json
objectstring · nullableOptional
modelstring · nullableOptional
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