GENXT Confidential LLM API
    • Server attestation
      POST
    • Generate a completion
      POST
    • Generate a chat completion
      POST
    • List Local Models
      GET
    • Show Model Information
      POST
    • Generate Embeddings
      POST
    • OpenAI compatible endpoints
      POST

      Generate Embeddings

      POST
      https://api.genxt.ai/api/embeddings
      Generate embeddings from a model

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json

      Examples

      Responses

      🟢200Embeddings generated from the model.
      application/json
      Bodyapplication/json

      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location 'https://api.genxt.ai/api/embeddings' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data '{
          "model": "string",
          "prompt": "string",
          "options": {},
          "keep_alive": "5m"
      }'
      Response Response Example
      [
          0
      ]
      Modified at 2024-11-25 19:58:37
      Previous
      Show Model Information
      Next
      OpenAI compatible endpoints
      Built with