Request
curl 'https://ark.cn-beijing.volcengineapi.com/?Action=GetInferenceTaskUsage&Version=2024-01-01' \
-H 'Content-Type: application/json' \
-H 'X-Date: <X-Date>' \
-H 'X-Content-Sha256: <X-Content-Sha256>' \
-H 'Authorization: HMAC-SHA256 Credential=<AK>/<X-Date>/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=<Signature>' \
-d '{
"TaskID": "cgt-example"
}
'Response
{
"ResponseMetadata": {
"RequestId": "query-task-request-id-example",
"Action": "GetInferenceTaskUsage",
"Version": "2024-01-01",
"Service": "ark",
"Region": "cn-beijing"
},
"Result": {
"AccountID": 1000000001,
"UserID": 10001,
"TaskID": "cgt-example",
"APIKeyID": "apikey-example",
"AccountantStartTime": 1788228120,
"AccountantEndTime": 1788228150,
"ModelName": "model-example",
"ModelVersion": "version-example",
"ModelEndpoint": "ep-example",
"DeploymentType": "standard",
"Resolution": "480p",
"HasInputVideo": false,
"BillingStatus": "normal",
"OutputTokens": 50638
}
}