Authentication
authorization string required
All APIs require authentication via Bearer Token.
Get API Key:
Visit API Key Management Page to get your API Key.
Usage:
Add to request header:
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Model ID to use for the request
Value: tencent_mps_super_resolution
input_url string required
Input video URL for super resolution processing
definition integer required
Template ID for the super resolution processing preset
1682687 — Jitter optimization, 4K, source frame rate, large model enhancement: denoising + super resolution + comprehensive enhancement
1682688 — Strong generation capability, 4K, source frame rate, large model enhancement: denoising + super resolution + comprehensive enhancement
Options: 1682687, 1682688
short integer required
Short side length of the output video in pixels
720 — HD (short side ≤ 720px)
1080 — Full HD (short side ≤ 1080px)
1440 — 2K (short side ≤ 1440px)
2160 — 4K (short side ≤ 2160px)
Options: 720, 1080, 1440, 2160
Polling
Since result generation takes time, you need to poll the task status after creating the task.
The initial response only returns information such as the task ID and initial status. The final result must be obtained by polling the task status endpoint using the task ID.
See the examples on the right for polling requests and responses.
Response Format
error object
Error information, only present when status is failed
code
stringError code
message
stringDetailed error message
output array
Generation results, only present when status is completed
content
arrayList of generated resource content
type
stringResource type
Value:
image|videourl
stringProcessed resource URL
jobId
stringRemote task ID
usage object
Usage statistics, only present when status is completed
cost
stringTotal cost in USD
discount
numberDiscount amount
metadata object
Metadata information