You need to enable JavaScript to run this app.
文档中心
火山方舟

火山方舟

复制全文
下载 pdf
管理模型用量
查询异步任务用量
复制全文
下载 pdf
查询异步任务用量
POST https://ark.cn-beijing.volcengineapi.com/?Action=GetInferenceTaskUsage&Version=2024-01-01​
根据 TaskID 查询当前账号下指定异步任务的用量。​
鉴权​
本接口支持鉴权方式如下,详情请参见 Base URL 及鉴权。​
  • Access Key 鉴权,请在 Access Key 管理 页面,获取 Access Key。本接口仅支持 Access Key 鉴权。​
​​
请求参数​
Body 参数​
TaskID string 必选 | 任务 ID​
​
​
响应参数​
AccountantEndTime integer | 账期结束时间​
​
AccountantStartTime integer | 账期开始时间​
​
AccountID integer | 账号 ID​
​
APIKeyID string | API Key 标识​
​
BillingStatus string | 计费状态​
​
DeploymentType string | 部署类型​
​
ErrorCode string | 错误码​
​
HasInputVideo boolean | 是否包含输入视频​
​
ManagedAgentID string | 托管 Agent ID​
​
ModelEndpoint string | 推理接入点 ID​
​
ModelName string | 模型名称​
​
ModelUnitID string | 模型单元 ID​
​
ModelVersion string | 模型版本​
​
OutputTokens integer | 输出 Token 数​
​
PlanChargedAFP string | Plan 计费 AFP​
​
PlanEdition string | Plan 版本​
​
PlanIsOverdraft boolean | 是否透支​
​
PlanLastestSubscribeMilestone string | Plan 订阅里程碑​
​
PlanPack string | Plan 套餐包标识​
​
PlanScene string | Plan 场景​
​
PlanSeatID string | Plan 席位 ID​
​
PlanSharedPackageID string | 共享包 ID​
​
PlanUsedSharedPackageQuota boolean | 是否使用共享包额度​
​
Resolution string | 输出分辨率​
​
SessionID string | 会话 ID​
​
TaskID string | 任务 ID​
​
UserID integer | 调用身份 ID​
​
​

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
    }
}
最近更新时间:2026.10.13 17:40:10
这个页面对您有帮助吗?
有用
有用
无用
无用