Animate a photo
animate_photoTurn photo(s) into a short video. With effect (from list_effects) the effect decides the motion; without it the photo is animated following prompt. Costs credits. Returns a task_id; poll get_video for the result (usually 1–5 minutes).
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": {
"image_urls": "<image_urls>"
},
"name": "animate_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | No | Effect id from list_effects. Omit for a free-form animation. | |
| prompt | No | Motion description for free-form animation, or extra instructions for an effect. | |
| image_urls | Yes | Public https image URLs (or data:image/...;base64 URLs), in the order the effect asks for. Usually one photo. |