create_product_video
Create product video
Generate a short vertical video ad from a single product photo. Spends credits from the user's prepaid avideoai balance. Cost (charged immediately, refunded automatically if the video fails): - model "hailuo" (default): 2 credits, ~6 second clip. Good default for most products. - model "veo": 4 credits, ~8 second clip. Highest fidelity; use when the user asks for premium/hero quality. Typical wait: 1-3 minutes. This tool returns at once with a video id and status "queued" — it does NOT wait for the video. Call get_video_status with the id every 15-30 seconds until status is "completed" (then share video_url) or "failed". Requirements: image_url must be a public https URL of a JPEG or PNG under 10MB (a product photo, ideally on a plain background). If you are unsure the user can afford it, call check_credits first. At most 3 videos can be in progress at once per API key. Errors: "insufficient_credits" means the user must buy credits at https://www.avideoai.com/pricing — nothing was charged. "image_unreachable" means the image URL could not be downloaded or is not a JPEG/PNG. "concurrency_limit" means wait for an in-progress video to finish.
modelprompt必填image_url必填idempotency_key