runwayml
The official Python library for the runwayml API
Decision gist · record as of 2026-08-14
Yes. The library is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to call RunwayML's API from Python and want type safety, automatic pagination, and both sync/async support out of the box. The only prerequisite is a valid RunwayML API key.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid RunwayML API key (RUNWAYML_API_SECRET environment variable or passed explicitly); requires Python 3.9 or later.
- Low friction installation with a pure Python wheel.
- Actively maintained with a release from 2026-08-13.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions—attribution required but no copyleft obligations.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 26 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 222,286 downloads/mo, #9,267 on PyPI
Alternatives
Verify before relying
pip install runwayml
import os
from runwayml import RunwayML
client = RunwayML(api_key=os.environ.get("RUNWAYML_API_SECRET"))
image_to_video = client.image_to_video.create(
model="gen4_turbo",
prompt_image="https://example.com/assets/bunny.jpg",
ratio="1280:720",
prompt_text="The bunny is eating a carrot",
)
print(image_to_video.id)- Whether the library's auto-pagination handles all edge cases and rate-limit scenarios reliably in production.
- Performance characteristics of the async client with aiohttp backend under high concurrency.
- Whether retry logic (2 times by default) is appropriate for typical RunwayML API latency patterns.
What it is and what it does
RunwayML is an official Python SDK that wraps the RunwayML REST API, enabling developers to call generative AI services (image-to-video, text-to-image, and others) from Python code. It is generated by Stainless and provides both synchronous and asynchronous clients powered by httpx, with full type hints for all request parameters and response fields.
The library handles common API patterns automatically: pagination across list results, error classification (connection errors, rate limits, authentication failures, etc.), and automatic retry logic for transient failures. Responses are Pydantic models with helper methods for JSON serialization and dictionary conversion. It supports Python 3.9 through 3.14 and runs on macOS, Windows, and Linux.
Use it for
- Generate videos from static images with text prompts using the image-to-video endpoint.
- Create images from text descriptions via the text-to-image API with specified aspect ratios.
- Build async workflows that call multiple RunwayML endpoints concurrently without blocking.
- Integrate RunwayML's generative capabilities into a larger Python application with full IDE autocomplete.
- Paginate through lists of routers or other resources without manually handling cursor logic.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The library is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. Install it if you need to call RunwayML's API from Python and want type safety, automatic pagination, and both sync/async support out of the box. The only prerequisite is a valid RunwayML API key.
Install
runwayml on PyPI
Before you install
Low friction installation with a pure Python wheel. Actively maintained with a release from 2026-08-13. Depends on common, well-maintained libraries (httpx, pydantic, anyio) with no compiled dependencies.
Requires a valid RunwayML API key (RUNWAYML_API_SECRET environment variable or passed explicitly); requires Python 3.9 or later.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions—attribution required but no copyleft obligations.
Quickstart
pip install runwayml
import os
from runwayml import RunwayML
client = RunwayML(api_key=os.environ.get("RUNWAYML_API_SECRET"))
image_to_video = client.image_to_video.create(
model="gen4_turbo",
prompt_image="https://example.com/assets/bunny.jpg",
ratio="1280:720",
prompt_text="The bunny is eating a carrot",
)
print(image_to_video.id)
Verify before relying
- Whether the library's auto-pagination handles all edge cases and rate-limit scenarios reliably in production.
- Performance characteristics of the async client with aiohttp backend under high concurrency.
- Whether retry logic (2 times by default) is appropriate for typical RunwayML API latency patterns.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesanyiodistrohttpxpydanticsniffiotyping-extensions |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 222,286 / month, #9,267 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: runwayml-5.14.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “runwayml api client”
- runwaymlProvides a Python client library for the RunwayML REST API, offering…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also cloudflare · agentex-client · opencode-ai · perplexityai · retell-sdk · kernel · composio-client · supermemory · arcadepy · hiddenlayer-sdk