Query optimodel via the Lytix SAAS
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.
Optimodel request
The body is of type object
.
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.
Query optimodel via the Lytix SAAS
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.
Optimodel request
The body is of type object
.
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.