Put the influencer in a video
motion_controlUse this when the user wants a video recreated with their influencer: a dance, a trend, a talking clip, a walk. The influencer from one of their photos takes the place of the person in the reference video, with the same moves, scene, camera and sound. The reference video is 5 to 30 seconds long. Costs 2 credits per second of the reference video, or 3 per second with a new voice (voice_id from list_voices), which says the video's words in that voice instead of its own sound. Call it with check_only: true first: it reads the video's length and says the cost without charging; tell the user, and once they agree call it again without check_only. Returns at once with a generation_id; then call get_generation (usually 2 to 5 minutes). Calling it again starts and charges a new video.
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": {
"photo_id": "<photo_id>",
"video": "<video>"
},
"name": "motion_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | The video whose moves to copy: an Instagram reel link or its reel_id (after read_reel has read it), a video_id of one of the user's videos, an upload_id from upload_video, or an https:// link to a video file. | |
| prompt | No | Not used: the reference video sets the moves, scene and camera. | |
| photo_id | Yes | The photo of the influencer to put in the video: a photo_id from get_generation or list_media. A clear photo of her face works best; her pose and setting don't matter. | |
| voice_id | No | Optional: a voice from list_voices that says the reference video's words. | |
| check_only | No | Only read the video's length and say the cost; nothing is charged. | |
| keep_sound | No | Keep the reference video's own sound. Ignored with voice_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| video | No | With check_only: the video to pass next time. | |
| checked | No | ||
| summary | Yes | ||
| photo_id | No | ||
| video_id | No | ||
| view_url | No | ||
| error_code | No | Present only on a refusal. | |
| credits_left | No | ||
| generation_id | No | ||
| credits_needed | No | ||
| credits_charged | No | ||
| duration_seconds | No | ||
| expected_seconds | No |