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

ParamRequiredDescription
taskIdyesTask id from createTask or async gateway response
capabilitynoimage or video hint when no billing row exists (default video)

Provider routing

ProviderWhen used
kieDefault; Kie createTask jobs
runpod_customAsync 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.