{
"model": "midjourney",
"task_type": "seed",
"input": {
"origin_task_id": "513db975-d329-4717-b7c9-6272542f1c13"
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "midjourney",
"task_type": "seed",
"input": {
"origin_task_id": "513db975-d329-4717-b7c9-6272542f1c13"
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}'
{
"code": 200,
"data": {
"task_id": "e0a4a115-6946-4bc1-af36-0a0263fad6a1",
"model": "midjourney",
"task_type": "seed",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {},
"output": {
"seed": ""
},
"meta": {},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}