POST/api/v1/jobs#
Start a background conversion
Needs the API key when PUBLIC_API_KEY is set. Operation ID: startJob.
When: Use for AI upscaling, big batches or anything that may take long. Step 1 of the job flow: keep id and token from the answer.
Same form as POST /convert (without output), but answers at once with 202 and a job. The conversion keeps running if the caller goes away. Poll GET /jobs/{job_id} with the X-Job-Token header until status is done, failed or canceled, then download the files or the ZIP. Results are kept for result_retention_seconds (GET /info) after the last access.
The web UI converts through this endpoint.
Request body#
multipart/form-data, required.
Job status and progress
Needs the API key when PUBLIC_API_KEY is set. Operation ID: jobStatus.
When: Step 2 of the job flow: poll with id and token from POST /jobs until status is done, failed or canceled.
Poll every 1-2 seconds. progress has files_done/files_total, and for AI upscaling tiles_done/tiles_total (and waiting while another upscale holds the CPU). When status is done, result.converted_files lists the files to download. Every poll restarts the retention clock.
200 response body (JobState)#
POST/api/v1/jobs/{job_id}/cancel#
Stop a running job
Needs the API key when PUBLIC_API_KEY is set. Operation ID: cancelJob.
When: Optional, while a job runs: stop it with id and token from POST /jobs.
The job ends as canceled shortly after; its files are removed.
POST/api/v1/jobs/{job_id}/notify#
Get a push message when the job ends
Needs the API key when PUBLIC_API_KEY is set. Operation ID: notifyJob.
When: Optional, while a job runs: ask for a push message when it ends. Needs NOTIFY_URL (see notifications_enabled in GET /info).
Turns "notify me when done" on or off for one job. The container sends a short message (image count and device, never file names) to NOTIFY_URL. With PUBLIC_BASE_URL set the message links to the result. 409 when NOTIFY_URL is not configured.
Request body#
application/json (NotifyRequest), required.
POST/api/v1/jobs/{job_id}/claim#
Open a job from a notification link
Needs the API key when PUBLIC_API_KEY is set. Operation ID: claimJob.
When: Use on another device that opened a notification link /r/{job_id}/{share_token}: both values come from that link.
Trades the share token of a notification link for a job token of the calling device, which then works with X-Job-Token like the one from POST /jobs.
The share token exists only in the link /r/{job_id}/{share_token} of a notification. The container creates it when a job finishes with notify on (POST /jobs/{job_id}/notify) and NOTIFY_URL set. It is not the job token from POST /jobs. Send it in the body, never in a URL.
Request body#
application/json (ClaimRequest), required.
200 response body (JobClaim)#
Download one result file
Needs the API key when PUBLIC_API_KEY is set. Operation ID: jobFile.
When: Step 3 of the job flow: download one file; names come from result.converted_files of GET /jobs/{job_id}.
file_name is one entry of result.converted_files (may contain / when folder structure was kept).
Download all result files as ZIP
Needs the API key when PUBLIC_API_KEY is set. Operation ID: jobZip.
When: Step 3 of the job flow: download all results at once, after GET /jobs/{job_id} says done.
Built per request and never stored, so nobody else can fetch it.