Run in Apifox
Request Body Params application/json
{
"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 Code Samples
curl --location --request POST 'https://api.302.ai/302/submit/relight-v2' \
--header 'Authorization: Bearer ' \
--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
{
"images" : [
{
"url" : "https://file.302.ai/gpt/imgs/20260114/46a11c247cced6df238c0763f9528b13.png" ,
"content_type" : "image/png" ,
"file_size" : 0 ,
"width" : 768 ,
"height" : 960
}
] ,
"seed" : 161250775 ,
"has_nsfw_concepts" : [
false
] ,
"debug_latents" : null ,
"debug_per_pass_latents" : null
} Modified at 2026-01-14 06:23:03