- Getting Started
- Reference
- Webhook
- AI Editor SDK
Photo Restoration
POST
/v1/aiart/restoration
Request
Header Params
Authorization
string
required
Example:
Bearer <your api key>
Body Params application/json
userImageUrl
string
required
faceUpsample
boolean
required
backgroundEnhance
boolean
required
upscale
integer
required
fidelityWeight
number
required
Example
{
"userImageUrl": "https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg",
"faceUpsample": true,
"backgroundEnhance": true,
"upscale": 2,
"fidelityWeight": 0.5
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-b.fotor.com/v1/aiart/restoration' \
--header 'Authorization: Bearer <your api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"userImageUrl": "https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg",
"faceUpsample": true,
"backgroundEnhance": true,
"upscale": 2,
"fidelityWeight": 0.5
}'
Responses
🟢200success
application/json
Body
code
string
required
Example:
000
msg
string
required
Example:
success
data
object
required
taskId
string
required
Example:
e0dc194703174b6eafeacb4ee8e02850
Example
{
"code": "000",
"msg": "success",
"data": {
"taskId": "e0dc194703174b6eafeacb4ee8e02850"
}
}
Modified at 2025-03-14 02:45:02