POST
/
optimodel
/
api
/
v1
/
query
curl --request POST \
  --url https://api.lytix.co/optimodel/api/v1/query \
  --header 'Content-Type: application/json' \
  --header 'lx-api-key: <api-key>' \
  --data '{
  "messages": [
    {
      "role": "<string>",
      "content": {
        "role": "<string>",
        "content": "<string>"
      }
    }
  ],
  "modelToUse": "llama_3_8b_instruct",
  "speedPriority": "low",
  "temperature": 123,
  "maxGenLen": 123,
  "jsonMode": true,
  "provider": "openai"
}'
This response has no body data.

Authorizations

lx-api-key
string
header
required

Body

application/json

Optimodel request

The body is of type object.