Esrgan Video Upscaler

ESRGAN Video Upscaler: Experience sharper, clearer 4k videos with ESRGAN. This AI-powered video upscaler boosts resolution and reduces artifacts, making your video content look its best. Best Topaz alternative.

~150.62s
~$0.248
 1import requests
 2import json
 3
 4url = "https://api.segmind.com/v1/esrgan-video-upscaler"
 5headers = {
 6    "x-api-key": "YOUR_API_KEY",
 7    "Content-Type": "application/json"
 8}
 9
10data = {
11    "crop_to_fit": false,
12    "input_video": "https://segmind-sd-models.s3.amazonaws.com/display_images/video-upscale-input.mp4",
13    "res_model": "RealESRGAN_x4plus",
14    "resolution": "FHD"
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

POSThttps://api.segmind.com/v1/esrgan-video-upscaler

Parameters

input_videorequired
string (uri)

File path or URL of the input video

Default: "https://segmind-sd-models.s3.amazonaws.com/display_images/video-upscale-input.mp4"
crop_to_fitoptional
boolean

Option to crop the video to fit the specified resolution

Default: true
res_modeloptional
string

Upscaling model used for resolution enhancement

Default: "RealESRGAN_x4plus"
Allowed values :
"RealESRGAN_x4plus""RealESRGAN_x4plus_anime_6B""realesr-animevideov3"
resolutionoptional
string

Output resolution for the video

Default: "FHD"
Allowed values :
"FHD""2k""4k"

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