POST
/
v1
/
face-swap-photo
curl --request POST \
  --url https://api.magichour.ai/v1/face-swap-photo \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Face Swap image",
  "assets": {
    "source_file_path": "api-assets/id/1234.png",
    "target_file_path": "api-assets/id/1234.png"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "frame_cost": 5
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Body
assets
object
required

Provide the assets for face swap photo

name
string
default:Face Swap - dateTime

The name of image

Example:

"Face Swap 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:

5