Skip to main content

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.

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.

VariableRequiredPurpose
RUNWAYML_API_BASENoOverrides the provider base URL
RUNWAYML_API_SECRETNoCredential the gateway sends to the provider
RUNWAYML_API_KEYNoCredential 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.

info

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)ModeMax input tokensMax output tokensInput per 1M tokensOutput per 1M tokensOther pricingCapabilities
runwayml/aleph2Video$0.28 per output second
runwayml/eleven_multilingual_v2Text to speech$0.3 per 1M characters
runwayml/gemini_omni_flashVideo$0.1 per output second
runwayml/gen4_imageImage generation$0.05 per image
runwayml/gen4_image_turboImage generation$0.02 per image
runwayml/gen4_turboVideo
runwayml/gen4.5Video$0.12 per output second
runwayml/hailuo3Video$0.1 per output second
runwayml/seedance2Video$0.36 per output second
runwayml/seedance2_5Video$0.3 per output second
runwayml/seedance2_fastVideo$0.29 per output second
runwayml/seedance2_miniVideo$0.16 per output second
runwayml/veo3.1Video$0.4 per output second
runwayml/veo3.1_fastVideo$0.15 per output second