Skip to main content
POST
/
v3
/
async
/
mj-remove-background
Midjourney Remove Background
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/mj-remove-background \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "url": "<string>"
}
'
{
  "task_id": "<string>"
}
Use Midjourney’s background removal feature to automatically identify and remove the background from an image while preserving the main subject. This API uses asynchronous processing, so the client needs to query the final generated result using the task_id.

Request Headers

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

Request Body

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

Response Parameters

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generated result.