Run in Apifox
Request
Example: Bearer {{YOUR_API_KEY}}
Body Params application/json
num_inference_steps
integer
optional background_threshold
number
optional
{
"prompt" : "" ,
"image_url" : "" ,
"cfg" : 1 ,
"hr_downscale" : 0.5 ,
"output_format" : "jpeg" ,
"guidance_scale" : 5 ,
"lowres_denoise" : 0.98 ,
"highres_denoise" : 0.95 ,
"num_inference_steps" : 28 ,
"background_threshold" : 0.8 ,
"enable_hr_fix" : true
}
Request samples curl --location --request POST 'https://api.302.ai/302/submit/relight-v2' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "",
"image_url": "",
"cfg": 1,
"hr_downscale": 0.5,
"output_format": "jpeg",
"guidance_scale": 5,
"lowres_denoise": 0.98,
"highres_denoise": 0.95,
"num_inference_steps": 28,
"background_threshold": 0.8,
"enable_hr_fix": true
}'
Responses application/json Generate Code
{
"completed_at" : "" ,
"created_at" : "" ,
"error" : "" ,
"id" : "" ,
"model" : "" ,
"output" : "" ,
"started_at" : "" ,
"status" : ""
}
Modified at 2025-01-13 01:42:54