主题
查询任务
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 参数
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
任务id | string | 必需 |
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Authorization | string | 可选 | Bearer {{YOUR_API_KEY}} |
cURL 示例
bash
curl --location --request GET 'https://az.gptplus5.com/replicate/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8' \
--header 'Authorization: Bearer <token>'返回响应
🟢200成功
响应 Body
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
id | string | 必需 | |
logs | string | 必需 | |
urls | object | 必需 | |
└ get | string | 必需 | |
└ web | string | 必需 | |
└ cancel | string | 必需 | |
└ stream | string | 必需 | |
error | null | 必需 | |
input | object | 必需 | |
└ prompt | string | 必需 | |
└ input_image | string | 必需 | |
└ aspect_ratio | string | 必需 | |
└ output_format | string | 必需 | |
└ safety_tolerance | integer | 必需 | |
└ prompt_upsampling | boolean | 必需 | |
model | string | 必需 | |
output | string | 必需 | |
status | string | 必需 | |
metrics | object | 必需 | |
└ image_count | integer | 必需 | |
└ predict_time | number | 必需 | |
version | string | 必需 | |
created_at | string | 必需 | |
started_at | string | 必需 | |
completed_at | string | 必需 | |
data_removed | boolean | 必需 |
响应示例
json
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}