- Getting Started
- Reference
- Webhook
- AI Editor SDK
AI Upscaler
POST
/v1/aiart/imgupscale
Request
Header Params
Authorization
string
required
Here, <your_api_key> is the API key you obtained from the Fotor Developer Platform.
Example:
Bearer <your api key>
Body Params application/json
upscaling_resize
integer
required
userImageUrl
string
required
max_image_width
integer
required
max_image_height
integer
required
Example
{
"upscaling_resize": 2,
"userImageUrl": "https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg",
"max_image_width": 2048,
"max_image_height": 2048
}
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/imgupscale' \
--header 'Authorization: Bearer <your api key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"upscaling_resize": 2.0,
"userImageUrl": "https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg",
"max_image_width": 2048,
"max_image_height": 2048
}'
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"
}
}