- 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
Kling Virtual Try-On
POST
https://api.piapi.ai/api/v1/task
Request
Header Params
x-api-key
string
required
Body Params application/json
model
string
required
kling
Default:
kling
task_type
string
required
ai_try_on
Default:
ai_try_on
input
object
required
model_input
string
required
dress_input
string
optional
upper_input
string
optional
lower_input
string
optional
batch_size
integer
optional
>= 1<= 4
Default:
1
Example
{
"model": "kling",
"task_type": "ai_try_on",
"input": {
"model_input": "string",
"dress_input": "string",
"upper_input": "string",
"lower_input": "string",
"batch_size": 1
}
}
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/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-12-30 08:11:28