{
"model": "Qubico/image-toolkit",
"task_type": "background-remove",
"input": {
"rmbg_model": "RMBG-2.0",
"image": "https://i.ibb.co/5jFYpvc/rmbg.jpg"
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/7362635a-d773-474d-a906-c030dff1d40e",
"secret": ""
}
}
}curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qubico/image-toolkit",
"task_type": "background-remove",
"input": {
"rmbg_model": "RMBG-2.0",
"image": "https://i.ibb.co/5jFYpvc/rmbg.jpg"
},
"config": {
"webhook_config": {
"endpoint": "https://webhook.site/7362635a-d773-474d-a906-c030dff1d40e",
"secret": ""
}
}
}'{
"code": 200,
"data": {
"task_id": "16118fcf-6c90-43f9-bfd3-8f58befcdb52",
"model": "Qubico/image-toolkit",
"task_type": "background-remove",
"status": "pending",
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "https://webhook.site/7362635a-d773-474d-a906-c030dff1d40e",
"secret": ""
}
},
"input": {
"rmbg_model": "RMBG-2.0",
"image": "https://i.ibb.co/5jFYpvc/rmbg.jpg"
},
"output": null,
"meta": {
"created_at": "2026-01-04T12:29:45.010694675Z",
"started_at": "0001-01-01T00:00:00Z",
"ended_at": "0001-01-01T00:00:00Z",
"usage": {
"type": "llm",
"frozen": 0,
"consume": 10000
},
"is_using_private_pool": false
},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}