Video Projects
Animation
Changed onCreate a Animation video. The estimated frame cost is calculated based on the fps and end_seconds input.
post/v1/animation
Request
- Base URLhttps://api.magichour.ai
- URLhttps://api.magichour.ai/v1/animation
- AuthHTTP bearer
Request body
Example request
{
"name": "My Animation video",
"fps": 12,
"end_seconds": 5,
"height": 512,
"width": 512,
"style": {
"art_style": "Painterly Illustration",
"art_style_custom": "Watercolor painting with soft pastel colors",
"camera_effect": "Simple Zoom In",
"prompt_type": "custom",
"prompt": "Cyberpunk city",
"transition_speed": 5
},
"assets": {
"audio_source": "file",
"audio_file_path": "api-assets/id/1234.mp3",
"image_file_path": "api-assets/id/1234.png"
}
}Response
Success
Example response
{
"id": "cuid-example",
"credits_charged": 450
}Changes
- info
added the non-success response with the status
- info
removed the
Not Foundenum value from theresponse property for the response status - info
removed the
Unauthorizedenum value from theresponse property for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info
- info
added the non-success response with the status
- info