v1

latestOpenAPI 3.0.1MIT2026-07-2638658.5 KB
Video

Generate 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.

post/v2/create_video_from_product

Request body

product_idstring required

Product ID from product creation

visual_stylestring

Visual style name from visual list

override_scriptstring

Override the auto-generated script

webhook_urlstring uri

Webhook URL for status notifications

Example request

{
  "product_id": "NTIzMzc0NjI5",
  "visual_style": "Simple Product Switch",
  "video_spec": {
    "aspect_ratio": "landscape",
    "length": "30",
    "caption": true,
    "name": "My Product Video"
  },
  "avatar": {
    "id": 1
  },
  "voice": {
    "id": "en-US-ChristopherNeural"
  },
  "audio": {
    "music_id": 13
  },
  "script": {
    "style": "Storytime",
    "language": "english"
  },
  "webhook_url": "https://example.com/webhook"
}

Response

Success

codeinteger 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
msgstring required

Response message

Example response

{
  "msg": "Success",
  "data": {
    "video_id": "video_789",
    "status": "processing"
  }
}