curl --location 'https://api.inferless.com/rest/model/logs/get/' \
--header 'Authorization: <workspace-token>' \
--header 'Content-Type: application/json' \
--data '{
"model_id": "<your-model-id>",
"time_from": "2024-05-28T00:00:00.000Z",
"time_to": "2024-06-01T23:59:59.000Z",
"is_less_logs": false
}'
{
"status": "success",
"details": [
{
"time": "2024-06-01T00:54:45.370369921Z",
"log": "<log-item>",
"stream": "stderr"
},
{
"time": "2024-06-01T00:54:44.56988728Z",
"log": "<log-item>",
"stream": "stdout"
}
],
"next_token": "1716196866721"
}
Model Management APIs
Get Logs - API
This endpoint gets the logs of a model.
POST
/
rest
/
model
/
logs
/
get
/
curl --location 'https://api.inferless.com/rest/model/logs/get/' \
--header 'Authorization: <workspace-token>' \
--header 'Content-Type: application/json' \
--data '{
"model_id": "<your-model-id>",
"time_from": "2024-05-28T00:00:00.000Z",
"time_to": "2024-06-01T23:59:59.000Z",
"is_less_logs": false
}'
{
"status": "success",
"details": [
{
"time": "2024-06-01T00:54:45.370369921Z",
"log": "<log-item>",
"stream": "stderr"
},
{
"time": "2024-06-01T00:54:44.56988728Z",
"log": "<log-item>",
"stream": "stdout"
}
],
"next_token": "1716196866721"
}
Authorizations
Body
curl --location 'https://api.inferless.com/rest/model/logs/get/' \
--header 'Authorization: <workspace-token>' \
--header 'Content-Type: application/json' \
--data '{
"model_id": "<your-model-id>",
"time_from": "2024-05-28T00:00:00.000Z",
"time_to": "2024-06-01T23:59:59.000Z",
"is_less_logs": false
}'
{
"status": "success",
"details": [
{
"time": "2024-06-01T00:54:45.370369921Z",
"log": "<log-item>",
"stream": "stderr"
},
{
"time": "2024-06-01T00:54:44.56988728Z",
"log": "<log-item>",
"stream": "stdout"
}
],
"next_token": "1716196866721"
}