Model Metrics
Model Query
Model Metrics
Model Query
Query optimodel via the Lytix SAAS
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
Body
application/json
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.