Video Upscaler API documentation
Enhance and upscale one video by 2× or 4×. Billing is based on the actual source video duration read by VidMage.
Endpoints
| Contract item | Value |
|---|---|
| Capability | video-upscaler |
| Submit | POST https://vidmage.ai/api/v1/video-upscaler/submit |
| Query | POST https://vidmage.ai/api/v1/video-upscaler/query |
| Task identifier | taskId |
| Result field | videoUrl |
Authenticate with Authorization: Bearer YOUR_API_KEY. Save the task identifier and query the same capability. Use a stable Idempotency-Key for submission retries.
Product guide: AI Video Upscaler API for 2x and 4x Requests
Parameters and input rules
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
videoURL | string | Yes | Not specified | Source-video fileUrl returned by upload_files. |
scale | integer | Yes | Not specified | Upscale factor. Values: 2, 4 |
Measured media limits
| Input | Rule |
|---|---|
videoURL | The server measures this media for billing. Maximum 300 seconds. Do not send videoDuration in the submission body. |
Example request
{
"videoURL": "https://vidmage.ai/assets/models/hailuo-ai-video-generator/skincare-ad.mp4",
"scale": 2
}# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/video-upscaler/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"videoURL":"https://vidmage.ai/assets/models/hailuo-ai-video-generator/skincare-ad.mp4","scale":2}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Task results and recovery
URL of the upscaled video. Read videoUrl from the completed query response. Preserve taskId while the task is running.
curl -X POST "https://vidmage.ai/api/v1/video-upscaler/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "videoUrl": "https://..." } }Submission and task queries report the available task and usage information. A timeout is not a confirmed failure. Recover the existing task instead of resubmitting.
For face selection and error recovery, follow Task lifecycle. MCP uses the normalized taskId argument in get_task_result, including capabilities whose REST identifier is requestId.
Credits
| Component / option | Rate | Minimum |
|---|---|---|
| Video duration | 1 credits / second | — |
The example uses the duration shown above. The server measures uploaded media for billing; this duration is only supplied to the estimate.
Duration × rate is rounded up to whole credits; the applicable minimum charge is enforced.
Use the Playground or the MCP credit estimator for your exact inputs. Credits and billing.
