Install the Runway ML SDK and configure API key authentication for AI video generation.
set -euo pipefail
# Python
pip install runwayml
# Node.js
npm install @runwayml/sdk
# .env
RUNWAYML_API_SECRET=key_xxxxxxxxxxxxxxxxxxxxxxxx
from runwayml import RunwayML
client = RunwayML() # Reads RUNWAYML_API_SECRET from env
# The client is ready — no explicit auth call needed
# SDK auto-authenticates on first API call
print("RunwayML client initialized")
import RunwayML from '@runwayml/sdk';
const runway = new RunwayML(); // Reads RUNWAYML_API_SECRET from env
console.log('RunwayML client initialized');
runwayml SDK installed| Error | Cause | Solution |
|---|---|---|
401 Unauthorized |
Invalid API key | Verify key at dev.runwayml.com |
ModuleNotFoundError |
SDK not installed | pip install runwayml |
RUNWAYML_API_SECRET not set |
Missing env var | Set in .env or export |
Generate your first video: runway-hello-world