AI First-Last Frame Video Generation
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_87b8e34f/first-last-frame-video.
About this skill
Problem Scenario
When you have two definitive endpoint images (a first frame and a last frame) and need to generate a short video transition between them—such as for a transformation, day-night switch, product reveal, or scene shift—traditional video editing tools may not efficiently handle this directional transition. This skill specifically addresses the problem of creating short clips with directional motion paths from two static images, eliminating the manual effort of frame-by-frame editing.
Core Capability and Workflow
The core capability is transition generation based on first and last frames. It analyzes the features of both images, constructs a transition mapping, and invokes a video model to output a coherent motion clip. Key steps include:
- Image Analysis and Mapping Construction: Examine the MIME types, dimensions, character features, background differences, etc., of the first and last frames. Identify fixed elements (e.g., background structure) and changing elements (e.g., clothing or lighting), and define the motion direction (e.g., camera push-in) and landing时刻 on the last frame.
- Tool Invocation and Task Submission: Use beatra.models.list to confirm the model supports the attributes of both images, then submit the transition instruction via beatra.videos.interpolate. The payload includes first_frame and last_frame artifact IDs, a transition prompt (e.g., "Transform the subject from daytime to evening outfit with smooth motion"), duration (duration), and a client request ID (client_request_id).
- Result Processing and Polling: After task submission, poll using beatra.tasks.get until a terminal state is reached, retrieve the returned video assets or links, and verify that it starts from the first frame, ends at the last frame, and the intermediate motion meets expectations.
Applicable Boundaries and Notes
This skill is focused on transitions between two strict image endpoints and does not apply to other workflows: if you need to animate a single image, route to an image-to-video workflow; if you need to append frames before or after a video, route to a video continuation workflow. Note the following:
- Pricing Rules: Each transition is an independent paid stage; changing the first frame, last frame, transition instruction, or model triggers a new paid work with a new request ID.
- Endpoint Requirements: The first and last frames must be confirmed images; if an endpoint does not exist, it must be created and verified in a separate image generation stage first.
- Models and Tools: Defaults to model: "auto", but use beatra.models.list to confirm model support for the current image MIME types and dimensions. Only use the bundled MCP tools (e.g., beatra.videos.interpolate), avoiding configuration of host Connectors.
- Error Handling: If a task ID is lost, look up candidate tasks via client_request_id; cancel operations should only be called via beatra.tasks.cancel when requested by the user, and the terminal state confirmed with beatra.tasks.get.
Use Cases
- During social media marketing campaigns, transition two product day and night display images into a 5-second video to highlight its features under different lighting for ad posts.
- In e-commerce model showcases, generate a costume change transition short film based on a model's first and last frame images in two different outfits to quickly demonstrate styling changes.
- In early-stage film production, interpolate first and last frame images of the same scene in day and night versions to create a dynamic preview clip of the day-night switch for internal review.
- In creative ad design, automatically generate a smooth transformation process short film from a character's before and after design images to help clients visualize the final effect.
Best For
- E-commerce Marketing Specialist: Needs to regularly produce eye-catching short video ads for new product launches, quickly showcasing multi-angle or scene transformations.
- Social Media Content Creator: Seeks low-cost methods to convert static images into dynamic content to boost post engagement and virality.
- Film Post-Production Assistant: Responsible for animating scene concept art from the art department to generate transition clips for initial editing or client communication.
- Brand Visual Designer: Frequently needs to demonstrate transformation or transition effects from graphic designs to clients for validation and creative adjustments.
Related Skills
Restyle a short video into a new visual style while preserving core elements such as characters, actions, and composition, suitable for various creative conversions like anime, illustration, ink wash, etc.
Create Douyin vertical video covers from topics, hooks, or materials with support for creative generation, image synthesis, and refinement.
An AI tool that transforms real photos into specified illustration styles while preserving subject recognition.
An engineering-driven solution that integrates design styles, UX workflows, design systems, and multi-platform implementation to solve cross-project design consistency.