v1/jobs/workflow
POST/v1/jobs/workflow
create workflow job
Request
- application/json
Body
required
params object
property name* object
Responses
- 200
- 400
- default
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
job object
job id
Possible values: [DEFAULT
, CREATED
, PENDING
, RUNNING
, CANCELED
, SUCCESS
, FAILED
, WAITING
]
Default value: DEFAULT
job status
waitingInfo object
waiting info, when status is waiting will return this
failedInfo object
failed info, when status is failed will return this
Possible values: [DEFAULT
, TRANSITORY_ERROR
, FATAL_ERROR
]
Default value: DEFAULT
runningInfo object
running info, when status is running will return this
processingImages object[]
resourceImage object
meta object
image object
workflowFinishItem object
Possible values: [DEFAULT
, INIT
, RUNNING
, SUCCESS
, FAILED
]
Default value: DEFAULT
nodes object
property name* object
Possible values: [DEFAULT
, INIT
, RUNNING
, SUCCESS
, FAILED
]
Default value: DEFAULT
outputUi object
images object[]
finishedNodes object
successInfo object
success info, when status is success will return this
images object[]
final output images
meta object
image object
videos object[]
final output videos
meta object
image object
workflowFinishItem object
Possible values: [DEFAULT
, INIT
, RUNNING
, SUCCESS
, FAILED
]
Default value: DEFAULT
nodes object
property name* object
Possible values: [DEFAULT
, INIT
, RUNNING
, SUCCESS
, FAILED
]
Default value: DEFAULT
outputUi object
images object[]
finishedNodes object
{
"job": {
"id": "string",
"status": "DEFAULT",
"credits": 0,
"waitingInfo": {
"queueRank": "string",
"queueLen": "string"
},
"failedInfo": {
"reason": "string",
"code": "DEFAULT"
},
"runningInfo": {
"processingImages": [
{
"resourceImage": {
"id": "string",
"url": "string",
"expiredIn": "string",
"meta": {
"image": {
"format": "string",
"width": 0,
"height": 0
}
}
},
"progress": 0
}
],
"workflowFinishItem": {
"status": "DEFAULT",
"progress": 0,
"step": 0,
"id": "string",
"ctime": "string",
"mtime": "string",
"nodes": {},
"finishedNodes": {}
}
},
"successInfo": {
"images": [
{
"id": "string",
"url": "string",
"expiredIn": "string",
"meta": {
"image": {
"format": "string",
"width": 0,
"height": 0
}
}
}
],
"videos": [
{
"id": "string",
"url": "string",
"expiredIn": "string",
"meta": {
"image": {
"format": "string",
"width": 0,
"height": 0
}
}
}
],
"workflowFinishItem": {
"status": "DEFAULT",
"progress": 0,
"step": 0,
"id": "string",
"ctime": "string",
"mtime": "string",
"nodes": {},
"finishedNodes": {}
}
}
}
}
Bad Request: general error for invalid parameters More specific errors:
- invalid_samples: Sample count may only be greater then 1
- invalid_height_or_width: Height and width must be specified in increments of 64
- application/json
- Schema
Schema
- any
Default
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}