Use cURL for ad-hoc requests and fast debugging. Use Python (or another SDK) when you require automation, conditional logic, parallel processing, persistence, or when integrating generation into applications.

Examples below show equivalent requests using cURL and the Runway Python SDK so you can compare the syntax and typical usage patterns.
Example: GET a task by ID
cURL — quick authenticated GET:Never hard-code API keys in source files. Store secrets in environment variables (e.g.,
RUNWAYML_API_SECRET) or a secure secrets manager.Example: Create a text-to-image task (POST)
Below is the corresponding cURL POST with a JSON body to create a text-to-image task. cURL POST:- Work with native Python objects (lists, dicts) instead of raw JSON strings.
- Add retries, error handling, logging, and persistence easily.
- Integrate image generation into web applications, background workers, or data pipelines.
- RunwayML API documentation (reference for endpoints and authentication)
- Python packaging — pip