POST
/
v1
/
ai-image-upscaler
curl --request POST \
  --url https://api.magichour.ai/v1/ai-image-upscaler \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Image Upscaler image",
  "scale_factor": 2,
  "style": {
    "enhancement": "Resemblance",
    "prompt": "<string>"
  },
  "assets": {
    "image_file_path": "api-assets/id/1234.png"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "frame_cost": 50
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Body
scale_factor
number
required

How much to scale the image. Must be either 2 or 4

Example:

2

style
object
required
assets
object
required

Provide the assets for upscaling

name
string
default:Image Upscaler - dateTime

The name of image

Example:

"Image Upscaler image"

Response

200
application/json

Success

id
string
required

Unique ID of the image. This value can be used in the get image project API to fetch additional details such as status

Example:

"clx7uu86w0a5qp55yxz315r6r"

frame_cost
integer
required

The frame cost of the image generation

Example:

50