API Platform
recordInfo
GET /jobs/recordInfo
Query task status and results. The BFF routes by the provider stored in gateway_task_billing when the task was created; if no billing row exists, it falls back to Kie.
Query
| Param | Required | Description |
|---|---|---|
| taskId | yes | Task id from createTask or async gateway response |
| capability | no | image or video hint when no billing row exists (default video) |
Provider routing
| Provider | When used |
|---|---|
kie | Default; Kie createTask jobs |
runpod_custom | Async RunPod custom worker jobs registered at creation time |
RunPod custom workers should expose one of:
GET {worker_base}/status/{taskId}GET {worker_base}/recordInfo?taskId={taskId}
Response
{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_xxx",
"state": "success",
"resultJson": {},
"failMsg": null
}
}States: pending, processing, success, fail.
Credits are deducted only when state=success for deferred async tasks.