跳转到主要内容
GET
/
v1
/
query
/
t2a_async_query_v2
Query T2A Async V2 Task Status
curl --request GET \
  --url https://api.minimaxi.com/v1/query/t2a_async_query_v2 \
  --header 'Authorization: Bearer <token>'
{
  "task_id": 95157322514444,
  "status": "Processing",
  "file_id": 95157322514496,
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}
注:该 API 限制每秒最多查询 10 次。

Authorizations

Authorization
string
header
required

HTTP: Bearer Auth

  • Security Scheme Type: http
  • HTTP Authorization Scheme: Bearer API_key,用于验证账户信息,可在 账户管理>接口密钥 中查看。

Query Parameters

task_id
integer
required

任务 ID,提交任务时返回的信息

Response

200 - application/json
task_id
integer

任务 ID

status
enum<string>

该任务的当前状态。

  • Processing: 该任务正在处理中
  • Success: 该任务已完成
  • Failed: 任务失败
  • Expired: 任务已过期
Available options:
success,
failed,
expired,
processing
file_id
integer

任务创建成功后返回的对应音频文件的 ID。

  • 当任务完成后,可通过 file_id 调用 文件检索接口 进行下载
  • 当请求出错时,不返回该字段 注意:返回的下载 URL 自生成起 9 小时(32,400 秒)内有效,过期后文件将失效,生成的信息便会丢失,请注意下载信息的时间
base_resp
object

本次请求的状态码及其详情

I