查询异步聊天任务

GET/v1/async/chat/completions/{job_id}

查询 POST /v1/async/chat/completions 创建的任务。没有列表接口。

Authentication

Authorization Bearer

Path Parameters

job_idstringrequired

Job ID(chatjob_ 前缀)。

Response

idstring

Job ID。

objectstring

chat.completion.job

statusenum<string>
modelstring

对外模型名。

request_idstring

计费关联 id。

resultobject

status=completed 时的 chat completion。

errorobject

失败时的错误。

error.messagestring

Human-readable error message.

error.codestring

Machine-readable error code.

error.typestring

Error category when returned.

error.stagestring

Processing stage where the error occurred.

error.upstream_http_statusinteger

Provider HTTP status when the error came from upstream.

error.upstream_messagestring

Provider error message when available.

usageobject

可用时的 token 用量。

usage.prompt_tokensinteger

Input token count when returned.

usage.completion_tokensinteger

Output token count when returned.

usage.total_tokensinteger

Total token count when returned.

usage.input_tokensinteger

Input token count for providers that use input/output names.

usage.output_tokensinteger

Output token count for providers that use input/output names.

usage.generated_imagesinteger

Generated image count when returned.

usage.audio_duration_secondsnumber

Audio duration used for billing when returned.

usage.video_duration_secondsnumber

Video duration used for billing when returned.

usage.provider_request_idstring

Provider request ID used for upstream correlation.

请求

Shell
1curl https://api.token360.ai/v1/async/chat/completions/chatjob_01abc \
2  -H "Authorization: Bearer sk-your-api-key"
此页面对您有帮助吗?