Skip to main content
GET
图片生成查询接口
Retrieve the status and output of an asynchronous image generation or editing task. Only models that support asynchronous requests can use this endpoint.

Authorizations

Authorization
string
header
required

API认证token

Path Parameters

task_id
string<uuid>
required

图片生成任务ID

Response

成功响应

model
string
required

使用的图片模型

Example:

"gpt-image-1"

task_id
string<uuid>
required

图片任务ID(图片生成接口返回的 task_id 值)

task_status
enum<string>
required

任务状态

Available options:
pending,
running,
succeed,
failed
Example:

"succeed"

data
object[]

生成的图片列表(仅在task_status=succeed时返回)

error
object

错误信息(仅在生成失败时返回)