Create animation
create_animationCreates a stylized animated video with art and camera settings, using a custom prompt or an audio-derived prompt mode. Can use an initial image and audio. Credits depend on frame rate and duration; returns a project id for wait_for_video_project. Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use the named attachment fields first for ChatGPT files. Ask which file goes where if their roles are unclear. If a file fails, ask the user to attach it again and keep the requested settings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fps": "<fps>",
"end_seconds": "<end_seconds>",
"height": "<height>",
"width": "<width>",
"style": "<style>",
"assets": "<assets>"
},
"name": "create_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | Yes | The desire output video frame rate | |
| name | No | Optional project name for identifying this output. Omit to use the API's default project name. | Animation - dateTime |
| audio | No | Attach the audio from ChatGPT for this input. Set assets.audio_source to file. | |
| image | No | Attach the image from ChatGPT for this input. | |
| style | Yes | Defines the style of the output video | |
| width | Yes | The width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details | |
| assets | Yes | Provide the assets for animation. | |
| height | Yes | The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details | |
| end_seconds | Yes | This value determines the duration of the output video. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads. | |
| credits_charged | Yes | The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video. If video generation fails, credits will be refunded, and this field will be updated to include the refund. |