Перейти к содержимому
Главная

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.

POST /v1/queue/midjourney_remove_background # Создать задачу
GET /v1/queue/midjourney_remove_background/requests/{request_id}/status # Проверить статус
GET /v1/queue/midjourney_remove_background/requests/{request_id}/response # Получить результат
PUT /v1/queue/midjourney_remove_background/requests/{request_id}/cancel # Отменить задачу
Окно терминала
curl --location "https://odirouter.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"
}'
imgUrl string required

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.

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/midjourney_remove_background/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/midjourney_remove_background/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/midjourney_remove_background/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
ПолеТипОписание
request_idstringИдентификатор задачи, используемый во всех последующих операциях.
response_urlstringURL для получения итогового результата.
status_urlstringURL для проверки статуса задачи.
cancel_urlstringURL для отмены задачи.
queue_positionintТекущая позиция в очереди.