Light Mode
Blend
POST
/api/v1/taskThis endpoint from PiAPI's Midjourney API merges two to five input images. This endpoint corresponds to the Blend
command from the official Midjourney.
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:
blend
input
object
required
image_urls
array[string]
required
Provide two to five image URLs into this parameter
>= 2 items<= 5 items
process_mode
enum<string>
optional
This parameter indicates the operation process mode
Allowed values:
relaxfastturbo
dimension
enum<string>
optional
This parameter sets the dimension field.
Allowed values:
squareportraitlandscape
bot_id
integer
optional
Only Host-Your-Account users on the Pro Plan can use this parameter. This parameter specifies which Midjourney account will process this task.
Example
{
"model": "midjourney",
"task_type": "blend",
"input": {
"image_urls": [
"https://aoyouer.com/posts/moyu-devlog-0/2022-11-24-00-59_hu3f1e0a40cb06392f97875a081976a63b_1192560_1600x0_resize_box_3.png",
"https://aoyouer.com/posts/hugo-with-codespace/2022-11-23%2013.34.47_hu1cc8e82c0c96924b0c8ea2f0980e2e30_140972_1600x0_resize_box_3.png"
],
"process_mode": "fast",
"dimension": "",
"bot_id": 0
},
"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": "42fc48d5-40ab-47e7-9b31-213dfcc075a3",
"model": "midjourney",
"task_type": "blend",
"status": "pending",
"config": {
"service_mode": "public",
"webhook_config": {
"endpoint": "",
"secret": ""
}
},
"input": {},
"output": {
"image_url": "",
"image_urls": null,
"temporary_image_urls": null,
"discord_image_url": "",
"actions": [],
"progress": 0,
"intermediate_image_urls": null
},
"meta": {},
"detail": null,
"logs": [],
"error": {
"code": 0,
"raw_message": "",
"message": "",
"detail": null
}
},
"message": "success"
}
Last modified: 11 days ago