Make a character copy a video's motion
motion_controlTakes a picture of a character and a reference video and generates a video of THAT character performing the reference's motion (a dance, a walk, a gesture). Returns the new job's id immediately. WHEN: the user wants their character to dance, copy a move or perform a clip's motion. The clip supplies the MOVEMENT only; the character comes entirely from the picture. CONSENT: a real person's picture only with their permission, never a public figure or celebrity. The reference clip must be 3 to 30 seconds (10 if the character picture is a still portrait) and reasonably large; a clip outside the model's bounds is refused before anything is charged. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. No card? Give the user the url. COST: this spends the user's tokens: the reference clip's LENGTH times a per-second rate that depends on model and resolution (a 30-second reference costs ten times a 3-second one). The clip's length is MEASURED BY THE SERVER: that measurement is the price. A clip it cannot measure (a WebM, an unreadable header) is REFUSED uncharged: re-encode to MP4. There is no length argument. An external url costs one media-ingest slot: quote and create from the SAME url to pay it once. SPENDS TOKENS: price with estimate_only: true, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | `kling-3.0-motion-control` is the better and about 4x dearer one; `kling-2.6-motion-control` is the everyday choice. Ask the user rather than picking the expensive one for them. | |
| resolution | Yes | Output resolution; 1080p costs more per second. REQUIRED: use `720p` unless the user asked for `1080p`, and name the choice in the priced ask; never carried over from an earlier request. | |
| estimate_only | No | Price only; creates nothing. | |
| character_image | Yes | URL of the picture of the character to animate. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused. | |
| idempotency_key | No | Retry-safety key (IDEMPOTENCY). | |
| reference_video | Yes | URL of the video whose motion to copy. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused. | |
| character_orientation | No | What the character picture is: `video` (default) for a full-body or moving subject, `image` for a still portrait (which lowers the reference clip's maximum to 10 seconds). |