{"tool_key":"video","description":"Generate a video from a text prompt and/or reference files (image-to-video, video-to-video, lipsync, upscale).","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"model":{"type":"string","minLength":1},"prompt":{"type":"string","maxLength":20000},"aspect_ratio":{"type":"string"},"files":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"media_type":{"type":"string"}},"required":["url"],"additionalProperties":false}},"options":{"type":"object","properties":{"webhook_url":{"type":"string","format":"uri"},"cache":{"type":"boolean"}},"additionalProperties":{}},"resolution":{"description":"Quality tier. Supported by this model: 480p, 1080p, 4k. Unsupported tiers fall back to the nearest available.","type":"string","enum":["480p","720p","1080p","4k"]},"audio":{"description":"Set true to generate the video with a native audio track.","type":"boolean"},"duration":{"description":"Length in seconds. Not mapped by this model — ignored if sent.","anyOf":[{"type":"number","minimum":1,"maximum":120},{"type":"string"}]},"provider_options":{"type":"object","properties":{"fal":{"type":"object","properties":{"seed":{},"prompt":{"type":"string","description":"The text prompt describing the video and its sound."},"sync_mode":{"type":"boolean","description":"If `True`, the media will be returned as a data URI and the output data won't be available in the request history."},"aspect_ratio":{"anyOf":[{"type":"string","enum":["16:9","9:16","1:1","4:3","3:4"]},{"type":"string"}]},"generate_audio":{"type":"boolean","description":"Whether to generate a synchronized audio track."},"upscale_factor":{"anyOf":[{"type":"number","const":2},{"type":"number","const":2.25},{"type":"number","const":4},{"type":"null","const":null}]},"num_inference_steps":{"type":"integer","minimum":4,"maximum":16,"description":"The number of denoising steps. Lite is tuned for 10."},"enable_safety_checker":{"type":"boolean","description":"Authorized callers may set false to request relaxed screening."},"enable_prompt_expansion":{"type":"boolean","description":"Whether to rewrite the prompt into a detailed video+audio description with the model's own Qwen2.5-VL text encoder before generating."},"image_url":{"type":"string","description":"The image used as the first frame of the video."}},"additionalProperties":false}},"additionalProperties":false}},"required":["model"],"additionalProperties":false},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"type":"string","const":"v1"},"outputs":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"file_id":{"type":"string"},"media_type":{"type":"string"},"size_bytes":{"type":"number"},"raw":{}},"required":["url"],"additionalProperties":false}}},"required":["version","outputs"],"additionalProperties":false},"example":{"input":{"model":"kling-v3","prompt":"a cat jumping over a fence, cinematic","aspect_ratio":"16:9","duration":5},"output":{"version":"v1","outputs":[{"url":"https://s3.varg.ai/o/job_abc123.mp4","media_type":"video/mp4","size_bytes":52428800}]}}}