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 Body Params application/json
{
"prompt" : "一对中国夫妇" ,
"image_url" : "" ,
"negative_prompt" : "ugly, deformed, blurry" ,
"guidance_scale" : 5 ,
"image_size" : {
"width" : 1024 ,
"height" : 1024
} ,
"strength" : 0.85
} Request Code Samples
curl --location --request POST 'https://api.302.ai/302/submit/kolors' \
--header 'Authorization: Bearer ' \
--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
{
"images" : [
{
"url" : "https://file.302.ai/gpt/imgs/20260113/8262e86fc5dafdccdac99dc7ea738b0c.png" ,
"width" : 1024 ,
"height" : 1024 ,
"content_type" : "image/jpeg"
}
] ,
"timings" : {
"inference" : 4.851676408201456
} ,
"seed" : 61808585 ,
"has_nsfw_concepts" : [
false
] ,
"prompt" : "一对中国夫妇"
} Modified at 2026-01-13 02:25:46