Skip to main content
POST
/
v3
/
async
/
mj-remove-background
Midjourney Remove Background
curl --request POST \
  --url https://api.myrouter.ai/v3/async/mj-remove-background \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "url": "<string>"
}
'
{
  "task_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt

Use this file to discover all available pages before exploring further.

Use the Midjourney Remove Background feature to automatically detect and remove the background from an image, preserving the main subject. This endpoint uses async processing; the client needs to query the final result using the task_id.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

url
string
required
Image URL, specifying the image from which to remove the background.Maximum length: 1024 characters.

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.