Midjourney Remove Background
midjourney_remove_background
Midjourney Remove Background automatically removes image backgrounds precisely.
MidJourney interface notes
MidJourney endpoints are split into direct generation and secondary
editing. Direct generation only requires a prompt and other required
fields to create an image. Secondary editing requires an upstream task
ID and an image number from a previous task. remove-background is a direct generation endpoint.
Endpoints
Section titled “Endpoints”POST /v1/queue/midjourney_remove_background # Create taskGET /v1/queue/midjourney_remove_background/requests/{request_id}/status # Query statusGET /v1/queue/midjourney_remove_background/requests/{request_id}/response # Get resultPUT /v1/queue/midjourney_remove_background/requests/{request_id}/cancel # Cancel taskRequest parameters
Section titled “Request parameters”curl --location "https://cloud.seaart.ai/model/v1/queue/midjourney_remove_background" \ --header "Authorization: Bearer YOUR_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "imgUrl": "https://example.com/input.png" }'Image URL. Must be a valid HTTP/HTTPS URL no longer than 1024 characters.
JPEG input returns a PNG result.
WebP input fails.
PNG input is supported.
Response parameters
Section titled “Response parameters”{ "request_id": "mmsu_01hxyz...", "response_url": "https://cloud.seaart.ai/model/v1/queue/midjourney_remove_background/requests/mmsu_01hxyz.../response", "status_url": "https://cloud.seaart.ai/model/v1/queue/midjourney_remove_background/requests/mmsu_01hxyz.../status", "cancel_url": "https://cloud.seaart.ai/model/v1/queue/midjourney_remove_background/requests/mmsu_01hxyz.../cancel", "queue_position": 0}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for all follow-up operations. |
response_url | string | URL for retrieving the final result. |
status_url | string | URL for querying task status. |
cancel_url | string | URL for canceling the task. |
queue_position | int | Queue position. |