Face-upscale
POST
/302/submit/face-upscale302.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.
For image upscale, project from:https://github.com/sczhou/CodeFormer
Average runtime 5-15s
Price: 0.01 PTC / call
请求参数
Header Params
Authorization
string
required
API Key from 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
image
file
required
Image
upscale
string
optional
Magnification factor; default is 2
Example:
2
codeformer_fidelity
number
optional
Fidelity, between 0 to 1; default is 0.5
Example:
0.5
face_upsample
boolean
optional
Face reconstruction; default is true
Example:
true
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
completed_at
string
required
created_at
string
required
error
string
required
id
string
required
model
string
required
output
string
required
started_at
string
required
status
string
required
Example
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
Last modified: 2 个月前