# Video Upscaler API Complete API reference for FlaqAI Video Upscaler models. ## Model Variants This API supports two video upscaling variants: | Model | ID | Description | |-------|----|-------------| | **Video Upscaler** | `video-upscaler` | Standard video upscaling with cost-effective per-second pricing | | **Video Upscaler Pro** | `video-upscaler-pro` | Premium video upscaling for higher-quality enhancement | ## Quick Comparison | Feature | Video Upscaler | Video Upscaler Pro | |---------|----------------|--------------------| | Input | Video URL | Video URL | | Target resolutions | 720p, 1080p, 2k, 4k | 720p, 1080p, 2k, 4k | | Aspect ratio | Source-driven | Source-driven | | Minimum billed duration | 5 seconds | 5 seconds | ## Create an Upscaling Task ### Endpoint ```http POST /api/v1/video/task ``` ### Request Parameters #### Required | Parameter | Type | Description | |-----------|------|-------------| | `model_name` | string | `"video-upscaler"` or `"video-upscaler-pro"` | | `video_url` | string | Publicly accessible URL of the source video | | `target_resolution` | string | Output resolution: `"720p"`, `"1080p"`, `"2k"`, or `"4k"` | The output aspect ratio is determined by the source video and cannot be set separately. ## Response Format ### Initial Response All models return a `task_id` for polling: ```json { "code": 0, "message": "success", "data": { "task_id": "{task_id}", "response_url": "https://api.flaq.ai/api/v1/video/{task_id}", "task_status": "submitted" } } ``` ### Polling Response Poll `GET /api/v1/video/{taskId}` to check status: ```json { "code": 0, "message": "success", "data": { "task_id": "{task_id}", "response_url": "https://api.flaq.ai/api/v1/video/{task_id}", "task_status": "succeed", "task_status_msg": null, "task_result": { "credit": 0.2, "videos": [ { "url": "https://example.com/generated-video.mp4" } ] } } } ``` ### Status Values - `submitted`: Task accepted and waiting to be processed - `processing`: Video generation in progress - `succeed`: Video generation completed - `failed`: Video generation failed ## Processing Time Typical processing time is 2–5 minutes, depending on the duration of the uploaded video and the target resolution. Poll every 5-10 seconds to check status. ## Best Practices - Use a stable, publicly accessible HTTPS URL for `video_url`. - Choose the target resolution according to the source quality; increasing resolution cannot restore details absent from the source. - Account for the 5-second minimum billed duration when estimating credits for short videos. - Use `video-upscaler` for cost-sensitive workflows and `video-upscaler-pro` when enhancement quality is the priority.