Runway Gen 4 Turbo
Generate videos faster and cheaper with Runway Gen-4 Turbo! Create high-quality text, image, and combined video generation for rapid content creation.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/runway-gen4-turbo"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "promptText": "as the camera pans the Brooklyn bridge gets on fire and collapse",
12 "promptImage": "https://segmind-inference-inputs.s3.amazonaws.com/bfeb3c8d-e9cc-4d59-bda5-626fcb20f90d-2afac9bc-68f5-4611-aa1b-d0bae2cecf3b-bc0f7ed8-c35b-4514-84f1-5a392d6e9b8a-thewaterwascold.png",
13 "seed": 56698,
14 "ratio": "1280:720",
15 "duration": "5"
16}
17
18response = requests.post(url, headers=headers, json=data)
19
20if response.status_code == 200:
21 result = response.json()
22 print(json.dumps(result, indent=2))
23else:
24 print(f"Error: {response.status_code}")
25 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/runway-gen4-turbo"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "promptText": "as the camera pans the Brooklyn bridge gets on fire and collapse",
12 "promptImage": "https://segmind-inference-inputs.s3.amazonaws.com/bfeb3c8d-e9cc-4d59-bda5-626fcb20f90d-2afac9bc-68f5-4611-aa1b-d0bae2cecf3b-bc0f7ed8-c35b-4514-84f1-5a392d6e9b8a-thewaterwascold.png",
13 "seed": 56698,
14 "ratio": "1280:720",
15 "duration": "5"
16}
17
18response = requests.post(url, headers=headers, json=data)
19
20if response.status_code == 200:
21 result = response.json()
22 print(json.dumps(result, indent=2))
23else:
24 print(f"Error: {response.status_code}")
25 print(response.text)API Endpoint
https://api.segmind.com/v1/runway-gen4-turboParameters
promptImagerequiredstring (uri)URL of the input image to be animated. A HTTPS URL pointing to an image. Images must be JPEG, PNG, or WebP and are limited to 16MB
promptTextrequiredstringText prompt to describe the desired animation effect
durationoptionalintegerDuration of the animation in seconds
5510ratiooptionalstringThe aspect ratio of the output video.
"1280:720""1280:720""720:1280""1104:832""832:1104""960:960""1584:672"seedoptionalintegerSeed for random generation
Response 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