Runway Gen Alpha Turbo Image to Video
Runway Gen-3 AlphaTurbo is a cutting-edge AI tool that transforms static images into dynamic videos with exceptional fidelity and motion
1import requests
2import json
3
4url = "https://api.segmind.com/v1/runway-gen3-alphaturbo"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "promptText": "an astronaut with a mirrored helmet running in the field of sunflowers",
12 "promptImage": "https://segmind-sd-models.s3.amazonaws.com/display_images/runway-gen3-input.png",
13 "seed": 56698,
14 "ratio": "16:9",
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-gen3-alphaturbo"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "promptText": "an astronaut with a mirrored helmet running in the field of sunflowers",
12 "promptImage": "https://segmind-sd-models.s3.amazonaws.com/display_images/runway-gen3-input.png",
13 "seed": 56698,
14 "ratio": "16:9",
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-gen3-alphaturboParameters
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
"https://segmind-sd-models.s3.amazonaws.com/display_images/runway-gen3-input.png"promptTextrequiredstringText prompt to describe the desired animation effect
"an astronaut with a mirrored helmet running in the field of sunflowers"durationoptionalintegerDuration of the animation in seconds
5510ratiooptionalstringThe aspect ratio of the output video.
"16:9""16:9""9:16"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