import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/veo3.1/fast", arguments={ "prompt": "Two person street interview in New York City.Sample Dialogue:Host: \"Did you hear the news?\"Person: \"Yes! Veo 3.1 is now available on fal. If you want to see it, go check their website.\"" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: "4"Possible values: 1, 2, 3, 4, 5, 6
{ "prompt": "Two person street interview in New York City.\nSample Dialogue:\nHost: \"Did you hear the news?\"\nPerson: \"Yes! Veo 3.1 is now available on fal. If you want to see it, go check their website.\"", "aspect_ratio": "16:9", "duration": "8s", "resolution": "720p", "generate_audio": true, "auto_fix": true, "safety_tolerance": "4"}
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/veo3.1/fast/image-to-video", arguments={ "prompt": "A monkey and polar bear host a casual podcast about AI inference, bringing their unique perspectives from different environments (tropical vs. arctic) to discuss how AI systems make decisions and process information.Sample Dialogue:Monkey (Banana): \"Welcome back to Bananas & Ice! I am Banana\"Polar Bear (Ice): \"And I'm Ice!\"", "image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31_i2v_input.jpg" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: "4"Possible values: 1, 2, 3, 4, 5, 6
URL of the input image to animate. Should be 720p or higher resolution in 16:9 or 9:16 aspect ratio. If the image is not in 16:9 or 9:16 aspect ratio, it will be cropped to fit.
{ "prompt": "A monkey and polar bear host a casual podcast about AI inference, bringing their unique perspectives from different environments (tropical vs. arctic) to discuss how AI systems make decisions and process information.\nSample Dialogue:\nMonkey (Banana): \"Welcome back to Bananas & Ice! I am Banana\"\nPolar Bear (Ice): \"And I'm Ice!\"", "aspect_ratio": "auto", "duration": "8s", "resolution": "720p", "generate_audio": true, "auto_fix": false, "safety_tolerance": "4", "image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31_i2v_input.jpg"}
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/veo3.1/fast/first-last-frame-to-video", arguments={ "prompt": "A woman looks into the camera, breathes in, then exclaims energetically, \"have you guys checked out Veo3.1 First-Last-Frame-to-Video on Fal? It's incredible!\"", "first_frame_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-1.jpeg", "last_frame_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-2.jpeg" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: "4"Possible values: 1, 2, 3, 4, 5, 6
{ "prompt": "A woman looks into the camera, breathes in, then exclaims energetically, \"have you guys checked out Veo3.1 First-Last-Frame-to-Video on Fal? It's incredible!\"", "aspect_ratio": "auto", "duration": "8s", "resolution": "720p", "generate_audio": true, "auto_fix": false, "safety_tolerance": "4", "first_frame_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-1.jpeg", "last_frame_url": "https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-2.jpeg"}
import fal_clientdef on_queue_update(update): if isinstance(update, fal_client.InProgress): for log in update.logs: print(log["message"])result = fal_client.subscribe( "fal-ai/veo3.1/fast/extend-video", arguments={ "prompt": "Continue the scene naturally, maintaining the same style and motion.", "video_url": "https://v3b.fal.media/files/b/0a8670fe/pY8UGl4_C452wOm9XUBYO_9ae04df8771c4f3f979fa5cabeca6ada.mp4" }, with_logs=True, on_queue_update=on_queue_update,)print(result)
The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: "4"Possible values: 1, 2, 3, 4, 5, 6