List usage observations, reconciling provider billing when possible.
curl --request GET \
--url http://localhost:3001/v1/training/sessions/{session_id}/usage \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/sessions/{session_id}/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/sessions/{session_id}/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"session_id": "<string>",
"run_id": "<string>",
"operation_id": "<string>",
"provider": "modal",
"meter": "<string>",
"quantity": 123,
"unit": "<string>",
"cost_microusd": 123,
"settlement_status": "pending",
"observed_at": "2023-11-07T05:31:56Z",
"settled_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}unified-training
List usage observations, reconciling provider billing when possible.
GET
/
v1
/
training
/
sessions
/
{session_id}
/
usage
List usage observations, reconciling provider billing when possible.
curl --request GET \
--url http://localhost:3001/v1/training/sessions/{session_id}/usage \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/sessions/{session_id}/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/sessions/{session_id}/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"session_id": "<string>",
"run_id": "<string>",
"operation_id": "<string>",
"provider": "modal",
"meter": "<string>",
"quantity": 123,
"unit": "<string>",
"cost_microusd": 123,
"settlement_status": "pending",
"observed_at": "2023-11-07T05:31:56Z",
"settled_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}Authorizations
Whitney-issued API key. No organization-selection header is accepted.
Path Parameters
Pattern:
^wts_[0-9a-f]{32}$Response
Token or GPU-time usage components. Modal components may remain pending while provider billing settles.
Show child attributes
Show child attributes
