Skip to main content
GET
cURL

概述

通过任务 ID 查询图像生成任务的状态和结果。
跨 API 兼容性: 此端点也兼容通过 /replicate/v1/models/\{model\}/predictions/flux/v1/\{model\} 创建的任务。

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

查询参数

id
string
必填

Task id returned by the Flux generate endpoint.

响应

200 - application/json

OK

id
string
result
object

Generation result when the task is Ready. sample carries a time-limited image URL; download it promptly.

status
string

Task state, such as Pending, Ready, or Task not found for expired or unknown tasks.