This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Description
I have an async RunPod call that I get the image of when the RunPod job is COMPLETED. However, I am trying to figure out how to get the image of a running process, similar to mrhan1993/Fooocus-API#51. This means, in addition to the RunPod call being async, the Fooocus API call also needs to be async.
Let's say I have the following:
- RunPod endpoint at https://api.runpod.ai/v2/abcd1234
- Call run at https://api.runpod.ai/v2/abcd1234/run
- I receive back a completed RunPod job ID that looks like this:
{
"delayTime": 1350,
"executionTime": 50,
"id": "7a857de9-e180-4226-be6b-1a1585c597cd-u1",
"output": {
"job_id": "3d653995-23ea-4311-bfee-dec98d8fca8c",
"job_progress": 0,
"job_result": null,
"job_stage": "WAITING",
"job_status": null,
"job_step_preview": null,
"job_type": "Text to Image"
},
"status": "COMPLETED"
}
But I am not sure what to do with the Fooocus job id, 3d653995-23ea-4311-bfee-dec98d8fca8c, or what the HTTP request to the Fooocus API would be in this case.