UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

126 lines (103 loc) • 5.56 kB
--- summary: "Runway video generation setup in OpenClaw" title: "Runway" read_when: - You want to use Runway video generation in OpenClaw - You need the Runway API key/env setup - You want to make Runway the default video provider --- OpenClaw ships a bundled `runway` provider for hosted video generation, enabled by default, registered against the `videoGenerationProviders` contract. | Property | Value | | --------------- | ----------------------------------------------------------------- | | Provider id | `runway` | | Plugin | bundled, `enabledByDefault: true` | | Auth env vars | `RUNWAYML_API_SECRET` (preferred) or `RUNWAY_API_KEY` | | Onboarding flag | `--auth-choice runway-api-key` | | Direct CLI flag | `--runway-api-key <key>` | | API | Runway task-based video generation (`GET /v1/tasks/{id}` polling) | | Default model | `runway/gen4.5` | ## Getting started <Steps> <Step title="Set the API key"> ```bash openclaw onboard --auth-choice runway-api-key ``` </Step> <Step title="Set Runway as the default video provider"> ```bash openclaw config set agents.defaults.mediaModels.video.primary "runway/gen4.5" ``` </Step> <Step title="Generate a video"> Ask the agent to generate a video. Runway will be used automatically. </Step> </Steps> ## Supported modes and models The provider exposes seven Runway models split across three modes. The same model id can serve more than one mode (for example `gen4.5` works for both text-to-video and image-to-video). | Mode | Models | Reference input | | -------------- | ---------------------------------------------------------------------- | ----------------------- | | Text-to-video | `gen4.5` (default), `veo3.1`, `veo3.1_fast`, `veo3` | None | | Image-to-video | `gen4.5`, `gen4_turbo`, `gen3a_turbo`, `veo3.1`, `veo3.1_fast`, `veo3` | 1 local or remote image | | Video-to-video | `gen4_aleph` | 1 local or remote video | Local image and video references are supported via data URIs. For `veo3.1` and `veo3.1_fast`, OpenClaw defaults to 4 seconds and accepts 4, 6, or 8 seconds. It rounds fractional durations before checking them, so a request for 5.9 seconds becomes 6 seconds. OpenClaw also recognizes the legacy `veo3` setting, which defaults to 8 seconds and accepts only 8. For new requests, use a model in [Runway's current catalog](https://docs.dev.runwayml.com/guides/models/). | Aspect ratios | Allowed values | | ------------------------------------ | ------------------------------------------- | | Text-to-video and Veo image-to-video | `16:9`, `9:16` | | Other image and video edits | `1:1`, `16:9`, `9:16`, `3:4`, `4:3`, `21:9` | For a square image-to-video output, use `runway/gen4.5` or `runway/gen4_turbo`. With Veo, `video_generate` normalizes a square hint to a supported ratio instead. See [Runway's request schema](https://docs.dev.runwayml.com/openapi.json) and the [legacy Veo 3 schema](https://github.com/runwayml/sdk-python/blob/3ae44e965e8a82d5044deb89e9747b392e47bbe2/src/runwayml/types/image_to_video_create_params.py#L412-L425) (checked November 29, 2026). <Warning> Video-to-video currently requires `runway/gen4_aleph`. Other Runway model ids reject video reference inputs. </Warning> <Note> Picking a Runway model id from the wrong column produces an explicit error before the API request leaves OpenClaw. The provider validates `model` against the mode's allowlist (`TEXT_ONLY_MODELS`, `IMAGE_MODELS`, `VIDEO_MODELS`) in `extensions/runway/index.ts`. </Note> ## Configuration ```json5 { agents: { defaults: { mediaModels: { video: { primary: "runway/gen4.5", }, }, }, }, } ``` ## Advanced configuration Task submission and polling honor `models.providers.runway.request`, including custom headers, proxy settings, and private-network policy. Polling enforces private-network restrictions even without a proxy override. Generated video downloads do not inherit task credentials or private-network trust. Their URLs and redirects are checked for private-network targets before connecting. <AccordionGroup> <Accordion title="Environment variable aliases"> OpenClaw recognizes both `RUNWAYML_API_SECRET` (preferred) and `RUNWAY_API_KEY`. Either variable authenticates the Runway provider. </Accordion> <Accordion title="Task polling"> Runway uses a task-based API. After submitting a generation request, OpenClaw polls `GET /v1/tasks/{id}` until the video is ready. No additional configuration is needed for the polling behavior. </Accordion> </AccordionGroup> ## Related <CardGroup cols={2}> <Card title="Video generation" href="/tools/video-generation" icon="video"> Shared tool parameters, provider selection, and async behavior. </Card> <Card title="Configuration reference" href="/gateway/config-agents#agent-defaults" icon="gear"> Agent default settings including `mediaModels.video`. </Card> </CardGroup>