Cancel Running Job
October 27, 2025
Table of contents
Cancel a running job by ID.
Note: Only jobs with status created, started, or progress can be cancelled. Completed or failed jobs cannot be cancelled.
https://api.useapi.net/v3/midjourney/jobs/
jobid
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Path Parameters
jobidis required. The job ID to cancel.
Responses
-
Job cancelled successfully.
No Content (empty response body)
The job status has been updated to
failedand removed from running jobs list. -
Invalid API token.
{ "error": "Unauthorized" } -
Job not found.
{ "error": "Job not found" } -
Job expired (older than 62 days).
{ "error": "Job j1023... has expired" }
Examples
-
curl -X DELETE \ -H "Authorization: Bearer YOUR_API_TOKEN" \ "https://api.useapi.net/v3/midjourney/jobs/j1023141520123456789i-u12345-c1234567890123456789-bot:midjourney" -
const jobId = 'j1023141520123456789i-u12345-c1234567890123456789-bot:midjourney'; const response = await fetch( `https://api.useapi.net/v3/midjourney/jobs/${jobId}`, { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' } } ); if (response.status === 204) { console.log('Job cancelled successfully'); } else { console.error('Failed to cancel job:', response.status); } -
import requests job_id = 'j1023141520123456789i-u12345-c1234567890123456789-bot:midjourney' response = requests.delete( f'https://api.useapi.net/v3/midjourney/jobs/{job_id}', headers={'Authorization': 'Bearer YOUR_API_TOKEN'} ) if response.status_code == 204: print('Job cancelled successfully') else: print(f'Failed to cancel job: {response.status_code}')
Important Notes
- Only running jobs can be cancelled:
- Status must be:
created,started, orprogress - Cannot cancel:
completed,failed, ormoderatedjobs
- Status must be:
- Job will be marked as failed:
- Status updated to
failed - Error message: “Job cancelled by user”
- Job removed from running jobs list
- Status updated to
- Discord cleanup:
- The API does not delete the Discord message
- Message remains in your Midjourney DM (direct messages) channel