Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour’s storage. Refer to the Input Files Guide for more details.
The response array will match the order of items in the request body.
Valid file extensions per asset type:
Note:
gif
is only supported for face swap APIvideo_file_path
field.
Once you receive an upload URL, send a PUT
request to upload the file directly.
Example:
curl -X PUT --data '@/path/to/file/video.mp4' \
https://videos.magichour.ai/api-assets/id/video.mp4?<auth params from the API response>
Bearer authentication header of the form Bearer <api_key>
, where <api_key>
is your API key. To get your API key, go to Developer Hub and click "Create new API Key".
Body
The body is of type object
.
Success