DeerAPI 统一查询任务接口:通过 GET /flux/v1/get_result 查询 FLUX 短路径任务,也兼容 Replicate 风格任务 ID,适合希望用一条查询链路覆盖 BFL 与 Replicate 风格创建方式的场景。
curl 'https://api.deerapi.com/flux/v1/get_result?id=<TASK_ID>' \
-H "Authorization: Bearer <DEERAPI_KEY>"{
"id": "a738c474-3d9e-421a-860d-c7825c547fbb",
"status": "Ready",
"result": {
"seed": 966285791,
"prompt": "A red paper lantern on a wooden table, studio photo",
"sample": "https://storage.googleapis.com/example/flux-output.jpg",
"start_time": 1741760930.183,
"end_time": 1741760934.112,
"duration": 3.929
}
}status 和 result.sample。这类响应更接近 BFL 原生结构。status、output、urls 和 metrics。这类响应是标准 Predictions 对象。output 在任务完成前经常是 null。这不是失败,只是任务还没结束。POST /flux/v1/{model},任务先从这里创建。curl 'https://api.deerapi.com/flux/v1/get_result?id=<TASK_ID>' \
-H "Authorization: Bearer <DEERAPI_KEY>"{
"id": "a738c474-3d9e-421a-860d-c7825c547fbb",
"status": "Ready",
"result": {
"seed": 966285791,
"prompt": "A red paper lantern on a wooden table, studio photo",
"sample": "https://storage.googleapis.com/example/flux-output.jpg",
"start_time": 1741760930.183,
"end_time": 1741760934.112,
"duration": 3.929
}
}