{"openapi":"3.1.0","info":{"title":"Vidu Q4 API — Cheaper Gen.","version":"1.0.0","description":"Vidu Q4 (preview) animates a first frame or combines up to 15 reference images and 3 voice clips into 3–16 second videos with audio, from 540p up to 4K."},"servers":[{"url":"https://cheapergen.com/api/v1"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"Generation":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"generation"},"model":{"type":"string"},"endpoint":{"type":"string"},"status":{"enum":["queued","running","succeeded","failed","canceled"]},"output":{"type":["object","null"]},"error":{"type":["object","null"]},"cost":{"type":"object","properties":{"amount_usd":{"type":"number"},"official_usd":{"type":["number","null"]},"saved_usd":{"type":["number","null"]},"estimated":{"type":"boolean"}}},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"}}}}},"paths":{"/run/shengshu/vidu-q4/image-to-video":{"post":{"summary":"Vidu Q4 — Image to Video","operationId":"shengshu_vidu_q4_image_to_video","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","image_url"],"properties":{"prompt":{"title":"Prompt","description":"Describe the shot: subject, action, camera movement, lighting and style.","type":"string","maxLength":5000},"image_url":{"title":"First frame","description":"Image used as the opening frame. JPG/PNG/WebP, URL or upload.","type":"string","format":"uri"},"resolution":{"title":"Resolution","description":"Output resolution. Higher resolutions cost more per second.","type":"string","enum":["540p","720p","1080p","2K","4k"],"default":"720p"},"duration":{"title":"Duration","description":"Length of the generated clip in seconds (3–16s). You pay per second.","type":"integer","minimum":3,"maximum":16,"default":5},"generate_audio":{"title":"Generate audio","description":"Generate synchronized dialogue and sound effects. Included in the price.","type":"boolean","default":true},"seed":{"title":"Seed","description":"Use the same seed and settings to reproduce a result. Leave empty for random.","type":"integer","minimum":0,"maximum":2147483647},"webhook_url":{"type":"string","format":"uri","title":"Webhook URL","description":"Optional. We POST the finished generation here (signed)."}},"additionalProperties":false}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request"},"402":{"description":"Insufficient balance"}}}},"/run/shengshu/vidu-q4/reference-to-video":{"post":{"summary":"Vidu Q4 — Reference to Video","operationId":"shengshu_vidu_q4_reference_to_video","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","reference_image_urls"],"properties":{"prompt":{"title":"Prompt","description":"Describe the shot: subject, action, camera movement, lighting and style.","type":"string","maxLength":5000},"reference_image_urls":{"title":"Reference images","description":"Up to 15 images for characters, products, style or scene. Refer to them in the prompt as @Image1, @Image2…","type":"array","items":{"type":"string","format":"uri"},"maxItems":15},"reference_audio_urls":{"title":"Reference audio","description":"Up to 3 MP3 clips for voice, music or sound (3–12 s each, ≤ 50 MB each). Refer to them as @Audio1, @Audio2… Needs at least one reference image or video.","type":"array","items":{"type":"string","format":"uri"},"maxItems":3,"x-media-limits":{"formats":["mp3"],"min_seconds":3,"max_seconds":12,"max_bytes":52428800}},"aspect_ratio":{"title":"Aspect ratio","description":"Output frame shape.","type":"string","enum":["16:9","9:16","1:1","4:3","3:4"],"default":"16:9"},"resolution":{"title":"Resolution","description":"Output resolution. Higher resolutions cost more per second.","type":"string","enum":["540p","720p","1080p","2K","4k"],"default":"720p"},"duration":{"title":"Duration","description":"Length of the generated clip in seconds (3–16s). You pay per second.","type":"integer","minimum":3,"maximum":16,"default":5},"generate_audio":{"title":"Generate audio","description":"Generate synchronized dialogue and sound effects. Included in the price.","type":"boolean","default":true},"seed":{"title":"Seed","description":"Use the same seed and settings to reproduce a result. Leave empty for random.","type":"integer","minimum":0,"maximum":2147483647},"webhook_url":{"type":"string","format":"uri","title":"Webhook URL","description":"Optional. We POST the finished generation here (signed)."}},"additionalProperties":false}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}},"400":{"description":"Invalid request"},"402":{"description":"Insufficient balance"}}}},"/generations/{id}":{"get":{"summary":"Get a generation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Generation"}}}}}}}}}