Kolors(Reference Image Generation-KLING)
Run in Apifox
02.AI's API comes from models we deployed on cloud GPUs. Some models are open-source, while others are fine-tuned or developed by 302.AI. Request
Example: Bearer {{YOUR_API_KEY}}
Body Params application/json
Prompt words support Chinese input
num_inference_steps
integer
optional
{
"prompt" : "一对中国夫妇" ,
"image_url" : "" ,
"negative_prompt" : "ugly, deformed, blurry" ,
"guidance_scale" : 5 ,
"image_size" : {
"width" : 1024 ,
"height" : 1024
} ,
"strength" : 0.85
}
Request samples curl --location --request POST 'https://api.302.ai/302/submit/kolors' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "一对中国夫妇",
"image_url":"",
"negative_prompt": "ugly, deformed, blurry",
"guidance_scale": 5,
"image_size": {
"width": 1024,
"height": 1024
},
"strength": 0.85
}'
Responses application/json Generate Code
{
"completed_at" : "" ,
"created_at" : "" ,
"error" : "" ,
"id" : "" ,
"model" : "" ,
"output" : "" ,
"started_at" : "" ,
"status" : ""
}
Modified at 2024-12-24 01:51:49