POST
/
v1
/
ai-talking-photo
curl --request POST \
  --url https://api.magichour.ai/v1/ai-talking-photo \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Talking Photo image",
  "start_seconds": 0,
  "end_seconds": 15,
  "assets": {
    "image_file_path": "api-assets/id/1234.png",
    "audio_file_path": "api-assets/id/1234.mp3"
  }
}'
{
  "id": "clx7uu86w0a5qp55yxz315r6r",
  "estimated_frame_cost": 450
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Body

Provide the assets for creating a talking photo

start_seconds
number
required

The start time of the input video in seconds

Required range: x >= 0
Example:

0

end_seconds
number
required

The end time of the input video in seconds

Required range: x >= 0.1
Example:

15

assets
object
required

Provide the assets for creating a talking photo

name
string
default:Talking Photo - dateTime

The name of image

Example:

"Talking Photo image"

Response

200
application/json

Success

id
string
required

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

Example:

"clx7uu86w0a5qp55yxz315r6r"

estimated_frame_cost
integer
required

Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes

Example:

450