RunwayML Gen-4.5
Text-to-Video • RunwayML
runwayml/gen-4.5
- Third-party
RunwayML'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 | <ul><li>Default (per second)$0.12</li></ul> |
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',
duration: 5,
ratio: '1280:720',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "A timelapse of the Eiffel Tower on a sunny day with clouds flying by",
"duration": 5,
"ratio": "1280:720"
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/fd840364-360e-4903-8500-d5787fd8ab90.mp4"
},
"state": "Completed"
}
Examples
<details>
<summary>Portrait Video — Vertical video for social media</summary>
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',
duration: 5,
ratio: '720:1280',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "A busy street in Tokyo at night with neon signs reflecting on wet pavement, rain falling",
"duration": 5,
"ratio": "720:1280"
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/44f43eac-8c12-4084-ace3-6395fa67c13e.mp4"
},
"state": "Completed"
}
</details>
<details>
<summary>Nature Close-up — Close-up wildlife shot in 16:9</summary>
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',
duration: 5,
ratio: '1280:720',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "Close-up of a hummingbird feeding from a vibrant red flower, slow motion with soft bokeh background",
"duration": 5,
"ratio": "1280:720"
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/e03781eb-2544-45ae-a9a8-6148d556bf2a.mp4"
},
"state": "Completed"
}
</details>
<details>
<summary>Cinematic Scene — Longer duration cinematic video</summary>
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',
duration: 10,
ratio: '1280:720',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "Aerial drone shot flying through a misty forest at dawn, rays of sunlight breaking through the trees",
"duration": 10,
"ratio": "1280:720"
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/23ea177e-523d-45b4-9f8c-c4f8d7238ff0.mp4"
},
"state": "Completed"
}
</details>
<details>
<summary>Image-to-Video — Animate an existing image</summary>
const response = await env.AI.run(
'runwayml/gen-4.5',
{
prompt: 'Camera slowly pans across the scene, gentle wind blowing',
duration: 5,
image_input:
'https://upload.wikimedia.org/wikipedia/commons/8/85/Tour_Eiffel_Wikimedia_Commons_(cropped).jpg',
ratio: '1280:720',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "Camera slowly pans across the scene, gentle wind blowing",
"duration": 5,
"image_input": "https://upload.wikimedia.org/wikipedia/commons/8/85/Tour_Eiffel_Wikimedia_Commons_(cropped).jpg",
"ratio": "1280:720"
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/ab424367-7431-4a0a-aa39-52604ff9150a.mp4"
},
"state": "Completed"
}
</details>
<details>
<summary>Reproducible Generation — Use seed for consistent results</summary>
const response = await env.AI.run(
'runwayml/gen-4.5',
{
prompt: 'A sailboat gliding across calm ocean waters at sunset',
duration: 5,
ratio: '1280:720',
seed: 42,
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "A sailboat gliding across calm ocean waters at sunset",
"duration": 5,
"ratio": "1280:720",
"seed": 42
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/0bdfbec7-0823-4529-bdb5-d37bb24adb0d.mp4"
},
"state": "Completed"
}
</details>
<details>
<summary>With Content Moderation — Adjust content moderation settings</summary>
const response = await env.AI.run(
'runwayml/gen-4.5',
{
prompt: 'A press conference with multiple speakers at podiums',
content_moderation: { public_figure_threshold: 'low' },
duration: 5,
ratio: '1280:720',
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "runwayml/gen-4.5",
"input": {
"prompt": "A press conference with multiple speakers at podiums",
"content_moderation": {
"public_figure_threshold": "low"
},
"duration": 5,
"ratio": "1280:720"
}
}'
{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://dnznrvs05pmza.cloudfront.net/75c4cb0d-20aa-4824-b1f3-32f33ab9269b.mp4"
},
"state": "Completed"
}
</details>
Parameters
prompt
stringrequiredminLength: 1maxLength: 1000Text prompt describing what should appear in the video
image_input
stringHTTPS URL, Runway URI, or data URI containing an image for image-to-video
ratio
stringrequireddefault: 1280:720enum: 1280:720, 720:1280, 1104:832, 960:960, 832:1104, 1584:672Resolution/aspect ratio of the output video
duration
integerrequireddefault: 5minimum: 2maximum: 10Video duration in seconds
seed
integerminimum: 0maximum: 4294967295Random seed for reproducible results
▶content_moderation{}
objectContent moderation settings
video
stringformat: uriURL to the generated video
API Schemas (Raw)
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/runwayml/gen-4.5/#page","headline":"RunwayML Gen-4.5","description":"RunwayML's video generation model supporting both text-to-video and image-to-video with customizable duration, aspect ratio, and content moderation controls.","url":"https://developers.cloudflare.com/ai/models/runwayml/gen-4.5/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Inkling is Thinking Machines' open-weights hybrid reasoning model, built on a mixture-of-experts architecture. It reasons by default, exposing its chain-of-thought as leading thinking content blocks, with reasoning effort tunable via a Tinker-specific output_config.effort parameter. Available through Tinker's beta Anthropic Messages-compatible endpoint alongside tool use, streaming, and multi-turn conversations. Currently intended for low-traffic testing and internal use rather than high-throughput production deployments; prompt caching, citations, and audio input are not supported through this endpoint. title: Inkling image: https://developers.cloudflare.com/og-docs.png
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.
t
Docs