Light Mode
Seed
POST
/api/v1/taskThis endpoint from PiAPI's Midjourney API obtains the seed information of a completed task.
Request
Header Params
X-API-Key
string
required
Insert your API Key here
Body Params application/json
model
enum<string>
required
Allowed value:
midjourney
task_type
enum<string>
required
Allowed value:
seed
input
object
required
origin_task_id
string
required
Tthe task_id of the task for which you are trying to obtain the seed information.
Example
{
"model": "midjourney",
"task_type": "seed",
"input": {
"origin_task_id": "513db975-d329-4717-b7c9-6272542f1c13"
},
"config": {
"service_mode": "",
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
OK - Successful response
Data Schema
object {0}
Example
{
"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"
}
Last modified: 11 days ago