Runway Gen Alpha Turbo Image to Video Serverless API
Runway Gen-3 AlphaTurbo is a cutting-edge AI tool that transforms static images into dynamic videos with exceptional fidelity and motion
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)https://api.segmind.com/v1/runway-gen3-alphaturbopromptImagerequiredstring (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
Returns: Video
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Invalid parameters or request format
Missing or invalid API key
Insufficient permissions
Model or endpoint not found
Not enough credits to process request
Too many requests
Internal server error
Service temporarily unavailable
Request timed out