- Get Started
- Endpoints
- Song(Udio)
- Kling
- Hailuo
- Flux
- AI Hug
- LLM
- Midjourney
- Faceswap
- TTS
- Trellis
- Luma Dream Machine
- WanX
- Skyreels
- Framepack
- Hunyuan Video
- Mmaudio
- DiffRhythm
- Ace Step
- Tools
- PiAPI Account Management
- Resources
- Legacy Documentation
- Midjourney
- Face Swap
- Dream Machine
- Kling
Cancel
POST
https://api.piapi.ai/mj/v2/cancel
legacy/Midjourney
processing
status.Request
Body Params application/json
task_ids
array
required
Example
{
"task_ids": [
null
]
}
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/cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
"task_ids": [
null
]
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2024-09-24 02:23:40