Relight
POST
/302/submit/relight302.AI's API is derived from models we've deployed on cloud GPUs. Some models are open-source, while others are fine-tuned or developed by 302.AI.
Secondary lighting, IC-Light, which stands for "Imposing Consistent Light," is a project dedicated to manipulating image illumination, project from: https://github.com/lllyasviel/IC-Light
Average runtime 10-20s
Price: 0.05 PTC / call
请求参数
Header 参数
Authorization
string
必需
API Key from 302.AI backend
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数multipart/form-data
subject_image
file
Image
prompt
string
Prompt
width
integer
可选
示例值:
512
height
integer
可选
示例值:
640
light_source
string
可选
None, Left Light, Right Light, Top Light, Bottom Light
output_quality
integer
可选
示例值:
100
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
completed_at
string
必需
created_at
string
必需
error
string
必需
id
string
必需
model
string
必需
output
string
必需
started_at
string
必需
status
string
必需
示例
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
最后修改时间: 2 个月前