跳轉到主要內容
GET
cURL

概觀

將頂層任務 id(由 POST /flux/v1/\{model\} 傳回)作為 id 查詢參數傳遞。在任務成功或失敗前,請在有限的用戶端逾時時間內持續輪詢。 成功的結果可包含 sample、seed、prompt 和 start_time。部分欄位可能會省略,因此只有在任務為 result.sample 後才要求 Ready。
result.sample 是暫時的。請勿將供應商結果 URL 用作持久的應用程式資產。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

查詢參數

id
string
必填

Top-level task ID returned by the FLUX create endpoint.

回應

200 - application/json

Current FLUX task state and, when ready, the generated image result.

id
string
必填

FLUX task ID.

status
string
必填

Task state. Ready is successful. Known failure states include Error, Failed, Failure, Task not found, Request Moderated, and Content Moderated.

result
object | null

Generation result. It can be null or omitted while the task is still running.

progress
number | null

Task progress when returned.

details
any

Additional task details when returned.

preview
any

Task preview data when returned.

最後修改於 2026年7月31日