Using AI technology to merge and create interactive hugging scenes between people from photos taken at different times or in different spaces has become a recent viral trend in short videos overseas.
On TikTok, many content creators have published "AI hugging videos", and related hashtags like #huggingai and #aihug continue to gain popularity. Popular videos receive thousands to hundreds of thousands of likes, with very active comment sections.
The emergence of these videos has allowed people to somewhat compensate for regrets and fulfill emotional needs. Through AI technology, people can embrace across time and space, even transcending life and death or different dimensions, to hug those they wish to hug.
Under the popularity of "AI hugging videos", many users are asking for tutorials or requesting help to create them.
In fact, achieving this effect is not complicated. Using the AI Image Toolbox on the 302.AI platform, one can quickly create AI hugging videos.

lmage Stitching
1、Upload Images
To achieve the hugging action, you first need to stitch together two separate individual photos. After creating an AI Image Toolbox in the 302.AI backend, you can select and upload images for stitching.

2、Select Function
After entering the operation interface, scroll down the left toolbar to the bottom and select the [Image Stitching] function. Click "Upload Sticker" below the image to select the image to be stitched, and upload the grandson's photo together.

3、Choose Size
1:1, 16:9, and 9:16 are the stitching sizes. Based on your stitching needs, you can first select 16:9 here.

4、Adjust Stitching
Drag the blue lines at the edges of the images to adjust the stitching style. It's recommended to adjust the two images to have consistent width in parallel stitching, which facilitates subsequent video generation. Click "Start" after completing the stitching.

5、Composite Stitched Image
Finally, you can see the finished stitched image, with the grandmother's and grandson's photos merged into one.

Video Generation
After completing image stitching, it's time to create the AI hugging video.
You can continue operating in the AI Image Toolbox of 302.AI, selecting the [Video Generation] function.
1、Select Function
After stitching the image, choose the [Video Generation] function from the left function bar to enter the operation interface.

2、Choose Size
Below the image are different model and size options. Choose the appropriate size based on the stitched image size. Here, you can select the Luma model, with a size that closely matches the stitched image size.
(Kling is an AI video generation tool launched by Kuaishou, while Runway and Luma are video generation tools from the United States, and Zhipu is developed by Beijing Zhipu AI Company.)

3、Input Requirements
After confirming the model and size, click "Start". A "Video Generation Requirements" prompt will appear. Enter "hugging".

4、Generate Video
Click "Confirm" and wait for the video to be generated.

5、Display Results
You can see in the video that AI has not only seamlessly merged two photos taken in different times and spaces, realizing the scene of grandmother and grandson hugging tightly, but also maintained high consistency in characters and background, with a very natural overall effect.
If you're not satisfied with the result, you can click "Redo" in the bottom right to regenerate the video.

6、Download Video
Finally, simply click the "Download" button in the top right to download the video, completing the process.

Other Functions
Of course, the AI Image Toolbox has many other applicable functions. In addition to the image stitching and video generation mentioned above, it also includes basic functions like Image Cropping, Color Adjustment, Remove Background, as well as advanced features such as Image Expansion, Image To Image, and AI Face Swap.
As an all-in-one intelligent image tool, the AI Image Toolbox has a clean interface and simple operation. Whether you're a beginner or an image processing expert, you can easily process and optimize images, quickly solving various image editing issues.