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" }'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_id | string | Идентификатор задачи, используемый во всех последующих операциях. |
response_url | string | URL для получения итогового результата. |
status_url | string | URL для проверки статуса задачи. |
cancel_url | string | URL для отмены задачи. |
queue_position | int | Текущая позиция в очереди. |