Video Processing
Overview#
The Video Upscale service uses Qubico/video-toolkit model to enhance video resolution. This service automatically scales up video content while maintaining quality and visual fidelity.Service Limitations#
Video Requirements#
Resolution: Maximum 720p (1280×720)
Frame count: Between 10 and 240 frames
Scale factor: Currently only supports 2x upscaling (doubles both width and height)
Pricing#
$0.0003 per frame processed
Notes and Best Practices#
1.
Always verify your video meets the requirements before submission:Frame count between 10-240
2.
Cost calculation example:For a 60-frame video: 60 frames × 0.0003=0.018 per video
3.
The service currently only supports 2x upscaling, which means:A 480p video (854×480) will be upscaled to 960p (1708×960)
A 360p video (640×360) will be upscaled to 720p (1280×720)
A 720p video (1280×720) will be upscaled to 1440p (2560x1440)
Request
Body Params application/json
Allowed value:Qubico/video-toolkit
Video URL or base64 string (MP4 format only)
{
"model": "Qubico/video-toolkit",
"task_type": "upscale",
"input": {
"video": "string"
},
"config": {
"webhook_config": {
"endpoint": "string",
"secret": "string"
}
}
}
Request samples
curl --location --request POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
application/json
Task created successfully
Unique identifier for the created task
Modified at 2025-02-13 12:55:29