Skip to main content
查询图片生成任务状态

授权

Authorization
string
header
默认值:sk-your-api-key
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string
必填

创建接口返回的图片任务 ID,通常以 imgtask_ 开头。

响应

图片任务状态。任务成功后返回问高云图片 URL。

id
string
必填
示例:

"imgtask_5a16c0f5d2b64b40a86f7f5b21f42a61"

object
enum<string>
必填
可用选项:
image.generation.task
model
string
必填
示例:

"gpt-image-2-async"

status
enum<string>
必填
可用选项:
queued,
running,
succeeded,
failed,
cancelled,
expired
created_at
integer
必填

Unix 时间戳,秒。

completed_at
integer | null
必填

Unix 时间戳,秒。

result
object
error
object