---
title: "Generate Video from Product"
method: POST
path: "/v2/create_video_from_product"
tags: ["Video"]
---

# Generate Video from Product

`POST /v2/create_video_from_product`

Create a video from product information with customizable visual style, avatar, voice, and script.
This is the final step after creating a product to generate the actual video.

## Request body

- object
  - `product_id` string, required — Product ID from product creation
  - `visual_style` string — Visual style name from visual list
  - `video_spec` object, required — Video specification settings
    - `aspect_ratio` 'portrait' | 'landscape' | 'square' — Video aspect ratio
    - `length` '15' | '30' | '60', required — Video length in seconds
    - `caption` boolean — Enable or disable subtitles
    - `name` string — Video name
  - `avatar` object, required — Avatar configuration
    - `id` integer, required — Avatar ID
    - `type` 0 | 1 — Source type of the avatar: * 0 - Public avatar * 1 - Custom avatar
  - `voice` object, required — Voice configuration
    - `id` string — Voice ID for text-to-speech
  - `audio` object, required — Audio configuration
    - `music_id` integer — Background music ID
  - `script` object, required — Script configuration
    - `style` 'Don't Worry' | 'Storytime' | 'Discovery' | 'Data' | 'Top 3 reasons' | 'Light marketing', required — Script writing style
    - `language` string, required — Script generation language
  - `override_script` string — Override the auto-generated script
  - `webhook_url` string, uri — Webhook URL for status notifications

## Response `200`

Success

- object
  - `code` integer, required — Business status code: * 0 - Success * 10104 - Record not found * 10105 - Invalid API key * 18020 - Insufficient credit * 18025 - No permission to call APIs * 40000 - Parameter error * 50000 - System error
  - `msg` string, required — Response message
  - `data` object
    - `video_id` string — Created product video ID
    - `status` 'processing' | 'completed' | 'failed' — Video generation status

---

[API](https://skmtc.net/jogg/apis/joggai-openapi-v2.md) · [All operations](https://skmtc.net/jogg/apis/joggai-openapi-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jogg/joggai-openapi-v2/versions/ec8807ce9c12/schema)
