RunwayML video generation
RunwayML video generation is available on the Spanway gateway through the runwayml/ model prefix. You register a RunwayML video generation model once in the gateway's config.yaml (or through the Admin UI), and every application then calls it through the gateway's OpenAI-compatible API with a Spanway virtual key. The provider credential stays on the gateway, and every request is authenticated, rate limited, logged and costed in the same way as any other provider.
The gateway translates requests and responses for RunwayML video generation natively, so provider specific parameters and errors are mapped to the OpenAI format for you.
Supported endpoints
The gateway's endpoint support matrix lists the following endpoints for RunwayML video generation. Each link explains the request shape and the gateway features that apply to that endpoint.
- OpenAI Images Generations API (
/images/generations) - OpenAI Text-to-Speech API (
/audio/speech) - OpenAI Videos API (
/videos)
Model types
The bundled price map lists 14 RunwayML video generation models across these modes: Video, Image generation, Text to speech. The mode decides which gateway endpoint a model is meant for, and it is also used by the gateway's health checks to send the right kind of test request.
Environment variables
The RunwayML video generation integration reads the following environment variables. Variables marked as required are the ones the gateway's environment validation checks for this provider. You can also pass any of these values directly in spanway_params (for example api_key or api_base), and the per-model value wins over the environment.
| Variable | Required | Purpose |
|---|---|---|
RUNWAYML_API_BASE | No | Overrides the provider base URL |
RUNWAYML_API_SECRET | No | Credential the gateway sends to the provider |
RUNWAYML_API_KEY | No | Credential the gateway sends to the provider |
Reference a variable from config.yaml with the os.environ/ prefix so that the secret never appears in the file itself. Secrets can also come from a secret manager, see secret managers.
Models and pricing
The table lists every RunwayML video generation model in the gateway's bundled price map. Prices are shown in US dollars per 1 million tokens, computed from the per-token values the gateway uses for spend tracking. Context window sizes are the provider limits recorded in the same file. Capabilities are the supports_* flags set for each model.
Prices come from the price map bundled with this Spanway build. They are used to calculate the spend recorded for each request, key, team and user. Your negotiated rates may differ, and you can override them per deployment with custom pricing.
Model (model value) | Mode | Max input tokens | Max output tokens | Input per 1M tokens | Output per 1M tokens | Other pricing | Capabilities |
|---|---|---|---|---|---|---|---|
runwayml/aleph2 | Video | $0.28 per output second | |||||
runwayml/eleven_multilingual_v2 | Text to speech | $0.3 per 1M characters | |||||
runwayml/gemini_omni_flash | Video | $0.1 per output second | |||||
runwayml/gen4_image | Image generation | $0.05 per image | |||||
runwayml/gen4_image_turbo | Image generation | $0.02 per image | |||||
runwayml/gen4_turbo | Video | ||||||
runwayml/gen4.5 | Video | $0.12 per output second | |||||
runwayml/hailuo3 | Video | $0.1 per output second | |||||
runwayml/seedance2 | Video | $0.36 per output second | |||||
runwayml/seedance2_5 | Video | $0.3 per output second | |||||
runwayml/seedance2_fast | Video | $0.29 per output second | |||||
runwayml/seedance2_mini | Video | $0.16 per output second | |||||
runwayml/veo3.1 | Video | $0.4 per output second | |||||
runwayml/veo3.1_fast | Video | $0.15 per output second |