Skip to main content

πŸš€ Introduction

With this Product Video API, you can transform a product image into a customized short-form video ad. The workflow includes:
  • Uploading a product image to create a record and generate a preview image.
  • Converting the preview image into a video using a specified record ID.
  • Regenerating a new record from an existing preview image or video for further customization.

βš™οΈ Quickstart Guide

βœ… Prerequisites

Before you begin, ensure you have:

πŸ–ΌοΈ Step 1: Upload Product Image and Create Record

Use this endpoint to upload a product image, create a record, and generate a preview image.

🎧 Example Response from POST /api/product_to_videos/gen_image/

⚠️ Save the id β€” you’ll need it to generate the video or regen the image.

Step 1.1: Check the generating image status.

Use this endpoint to check if the image is generated and retrieve the final output.
⏳ ProductToVideo is generating preview image status starts as initializing, and the status is image_generating when image generating, it’s will return image_generated until the image generated successful.

πŸ”„ Webhook Callback Example

If you provide a webhook_url, Creatify will notify your backend of the generation result:

Step 1.2:(Optional) Regen the image.

Use this endpoint to regen the preview image using a task ID. It will return a new ProductToVideo task ID, allowing you to select different tasks for the next step.
⏳ This response will keep the same as first step you had invoke gen_image to generated image.

πŸ”„ Webhook Callback Example

If you provide a webhook_url, Creatify will notify your backend of the generation result:

🎞️ Step 2: Generate Video from Preview Image Task.

Use this endpoint to convert the preview image associated with a task ID into a video.

🎧 Example Response from POST /api/product_to_videos/{id}/gen_video/

⚠️ Save the id β€” you’ll need it to regen video.

πŸ”„ Webhook Callback Example

If you provide a webhook_url, Creatify will notify your backend of the generation result:

Step 2.1: Check the generating video status.

Use this endpoint to check if the video is generated and retrieve the final output.
⏳ ProductToVideo is generating video status starts as video_generating, it’s will return video_generated until the video generated successful.
Also can wait the webhook response about this id backing result if you had sent webhook_url on API request.

Step 2.2:(Optional) Regenerate the video.

Use this endpoint to regen the video using a task ID. It will return a new ProductToVideo task ID.
⏳ This response will keep the same as first step you had invoke gen_video to generated video.

πŸ”„ Webhook Callback Example

If you provide a webhook_url, Creatify will notify your backend of the generation result:

🎯 Summary


🀝 Need Help?

If you run into any issues, check out our API Reference or contact api@creatify.ai.