RunwayML Gen-4.5
Text-to-Video • RunwayML • ProxiedRunwayML's video generation model supporting both text-to-video and image-to-video with customizable duration, aspect ratio, and content moderation controls.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
| Pricing | View pricing in the Cloudflare dashboard ↗ |
Usage
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'A timelapse of the Eiffel Tower on a sunny day with clouds flying by', ratio: '1280:720', duration: 5, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/fd840364-360e-4903-8500-d5787fd8ab90.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}Examples
Portrait Video — Vertical video for social media
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'A busy street in Tokyo at night with neon signs reflecting on wet pavement, rain falling', ratio: '720:1280', duration: 5, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/44f43eac-8c12-4084-ace3-6395fa67c13e.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}Nature Close-up — Close-up wildlife shot in 16:9
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'Close-up of a hummingbird feeding from a vibrant red flower, slow motion with soft bokeh background', ratio: '1280:720', duration: 5, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/e03781eb-2544-45ae-a9a8-6148d556bf2a.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}Cinematic Scene — Longer duration cinematic video
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'Aerial drone shot flying through a misty forest at dawn, rays of sunlight breaking through the trees', ratio: '1280:720', duration: 10, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/23ea177e-523d-45b4-9f8c-c4f8d7238ff0.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}Image-to-Video — Animate an existing image
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'Camera slowly pans across the scene, gentle wind blowing', image_input: 'https://upload.wikimedia.org/wikipedia/commons/8/85/Tour_Eiffel_Wikimedia_Commons_(cropped).jpg', ratio: '1280:720', duration: 5, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/ab424367-7431-4a0a-aa39-52604ff9150a.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}Reproducible Generation — Use seed for consistent results
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'A sailboat gliding across calm ocean waters at sunset', ratio: '1280:720', duration: 5, seed: 42, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/0bdfbec7-0823-4529-bdb5-d37bb24adb0d.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}With Content Moderation — Adjust content moderation settings
const response = await env.AI.run( 'runwayml/gen-4.5', { prompt: 'A press conference with multiple speakers at podiums', ratio: '1280:720', duration: 5, content_moderation: { public_figure_threshold: 'low', }, }, { gateway: { id: 'default' }, })console.log(response){ "state": "Completed", "result": { "video": "https://dnznrvs05pmza.cloudfront.net/75c4cb0d-20aa-4824-b1f3-32f33ab9269b.mp4" }, "gatewayMetadata": { "keySource": "Unified" }}Parameters
stringrequiredminLength: 1maxLength: 1000Text prompt describing what should appear in the videostringHTTPS URL, Runway URI, or data URI containing an image for image-to-videostringrequireddefault: 1280:720enum: 1280:720, 720:1280, 1104:832, 960:960, 832:1104, 1584:672Resolution/aspect ratio of the output videointegerrequireddefault: 5minimum: 2maximum: 10Video duration in secondsintegerminimum: 0maximum: 4294967295Random seed for reproducible resultsobjectContent moderation settingsstringformat: uriURL to the generated video