Create Mockup Animation
create_mockup_animationCreates a new mockup-animation variant from a scene preset and a project screenshot or recording. A dedicated mockup upload is not required. Supports phone, dual-screen phone, tablet and laptop devices, with model-fitted motion and finishes. Existing variants are preserved. Returns the new variant and editor link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional variant label shown in the studio's variant dropdown. | |
| device | No | Device kind: phone (iPhone 18 Pro / Pixel 10 Pro by platform), duo (iPhone Duo, unfolded), tablet (iPad Pro), laptop (MacBook Pro 14"). Match the screen content's aspect: iPad screenshots on tablet, Mac/desktop captures on laptop. | phone |
| platform | No | Only for device phone: ios = iPhone, android = Pixel. Defaults to the project's platform. | |
| presetId | Yes | Scene preset id: 'hero-launch' (cinematic swing), 'pivot-showcase' (spin reveal), 'slow-rotate' (drop & zoom), or 'drifting-tilt' (punch zoom). | |
| projectId | Yes | Project / generation UUID. | |
| outputRatio | No | Optional output aspect ratio. Defaults to 4:3 (classic). | |
| screenshotPath | Yes | Project-relative path for the device screen content, e.g. "mockups/1715191234567-clip.mp4" from list_mockup_media or "mobile/ios/1715191234567-home.png" from list_assets. Use an existing asset from the same project. | |
| motionDurationSeconds | No | Optional animation length in seconds. For a video screenshotPath it defaults to the recording's length (read on the server) so the loop plays the recording once; otherwise the preset's length. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |