- Get Started
- Endpoints
- Flux
- AI Hug
- LLM
- Midjourney
- Faceswap
- TTS
- Song(Suno+Udio)
- Trellis
- Luma Dream Machine
- Kling
- Hailuo
- Skyreels
- WanX
- Hunyuan Video
- PiAPI Account Management
- Mmaudio
- DiffRhythm
- Tools
- Resources
- Legacy Documentation
- Midjourney
- Face Swap
- Dream Machine
- Kling
Blend
POST
https://api.piapi.ai/mj/v2/blend
legacy/Midjourney
Blend
command from the official Midjourney.Request
Header Params
X-API-Key
string
required
Example:
{{x-api-key}}
Body Params application/json
image_urls
array[string]
required
bot_id
integer
optional
process_mode
string
optional
webhook_endpoint
string
optional
webhook_secret
string
optional
dimension
string
optional
Example
{
"image_urls": [
"https://image_1.png",
"https://image_2.png"
],
"process_mode": "fast",
"webhook_endpoint": "",
"webhook_secret": ""
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.piapi.ai/mj/v2/blend' \
--header 'X-API-Key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_urls": [
"https://image_1.png",
"https://image_2.png"
],
"process_mode": "fast",
"webhook_endpoint": "",
"webhook_secret": ""
}'
Responses
🟢200OK
application/json
Body
task_id
string
optional
status
string
optional
message
string
optional
Example
{
"task_id": "36725357**************2709a83babf8b",
"status": "success",
"message": "request Content-Type isn't multipart/form-data"
}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2024-09-24 02:23:40