Runway Gen4 Aleph
Runway Aleph revolutionizes video editing with intelligent automation for seamless object and environment manipulation.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/runway-gen4-aleph"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "seed": 42,
12 "video": "https://segmind-resources.s3.amazonaws.com/input/c08771b9-b671-4c12-9ea7-af4048b9d194-894a8bdf-6064-40ea-a78d-06c1abff262b.mp4",
13 "prompt": "make it winter",
14 "aspect_ratio": "9:16"
15}
16
17response = requests.post(url, headers=headers, json=data)
18
19if response.status_code == 200:
20 result = response.json()
21 print(json.dumps(result, indent=2))
22else:
23 print(f"Error: {response.status_code}")
24 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/runway-gen4-aleph"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "seed": 42,
12 "video": "https://segmind-resources.s3.amazonaws.com/input/c08771b9-b671-4c12-9ea7-af4048b9d194-894a8bdf-6064-40ea-a78d-06c1abff262b.mp4",
13 "prompt": "make it winter",
14 "aspect_ratio": "9:16"
15}
16
17response = requests.post(url, headers=headers, json=data)
18
19if response.status_code == 200:
20 result = response.json()
21 print(json.dumps(result, indent=2))
22else:
23 print(f"Error: {response.status_code}")
24 print(response.text)API Endpoint
https://api.segmind.com/v1/runway-gen4-alephParameters
promptrequiredstringText prompt to guide video transformation. Try 'in summer' for seasonal changes.
"make it winter"videorequiredstring (uri)Input video for transformation, max 16MB. Use high-quality clips for best results.
"https://segmind-resources.s3.amazonaws.com/input/c08771b9-b671-4c12-9ea7-af4048b9d194-894a8bdf-6064-40ea-a78d-06c1abff262b.mp4"aspect_ratiooptionalstringChoose desired video aspect ratio. Use '21:9' for cinematic effects.
"16:9""16:9""9:16""4:3""3:4""1:1""21:9"reference_imageoptionalstring (uri)Image to influence video style. Select vibrant images for colorful outputs.
nullseedoptionalintegerRandom seed for reproducibility. Set specific numbers for consistent results across runs.
42Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out