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.

~37.74s
$0.500 - $1.00 per generation
 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

POSThttps://api.segmind.com/v1/runway-gen4-turbo

Parameters

promptImagerequired
string (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

promptTextrequired
string

Text prompt to describe the desired animation effect

durationoptional
integer

Duration of the animation in seconds

Default: 5
Allowed values :
510
ratiooptional
string

The aspect ratio of the output video.

Default: "1280:720"
Allowed values :
"1280:720""720:1280""1104:832""832:1104""960:960""1584:672"
seedoptional
integer

Seed for random generation

Range: 1 - 99999

Response Type

Returns: Video

Common Error Codes

The API returns standard HTTP status codes. Detailed error messages are provided in the response body.

400

Bad Request

Invalid parameters or request format

401

Unauthorized

Missing or invalid API key

403

Forbidden

Insufficient permissions

404

Not Found

Model or endpoint not found

406

Insufficient Credits

Not enough credits to process request

429

Rate Limited

Too many requests

500

Server Error

Internal server error

502

Bad Gateway

Service temporarily unavailable

504

Timeout

Request timed out