Skip to content

查询任务

GET https://az.gptplus5.com/replicate/v1/predictions/{任务id}

官方文档: https://replicate.com/black-forest-labs/flux-kontext-max

请求参数

Authorization

在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token

示例:Authorization: Bearer ********************

Path 参数

参数名类型必需说明
任务idstring必需

Header 参数

参数名类型必需说明示例
Authorizationstring可选Bearer {{YOUR_API_KEY}}

cURL 示例

bash
curl --location --request GET 'https://az.gptplus5.com/replicate/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功

响应 Body

参数名类型必需说明
idstring必需
logsstring必需
urlsobject必需
  └ getstring必需
  └ webstring必需
  └ cancelstring必需
  └ streamstring必需
errornull必需
inputobject必需
  └ promptstring必需
  └ input_imagestring必需
  └ aspect_ratiostring必需
  └ output_formatstring必需
  └ safety_toleranceinteger必需
  └ prompt_upsamplingboolean必需
modelstring必需
outputstring必需
statusstring必需
metricsobject必需
  └ image_countinteger必需
  └ predict_timenumber必需
versionstring必需
created_atstring必需
started_atstring必需
completed_atstring必需
data_removedboolean必需

响应示例

json
{
    "created": 1589478378,
    "data": [
        {
            "url": "https://..."
        },
        {
            "url": "https://..."
        }
    ]
}