home / skills / openclaw / skills / wavespeed-ultimate-video-upscaler

wavespeed-ultimate-video-upscaler skill

/skills/chengzeyi/wavespeed-ultimate-video-upscaler

This skill upscales videos to 720p, 1080p, 2k, or 4k using WaveSpeed AI, producing higher-resolution results from a public video URL.

npx playbooks add skill openclaw/skills --skill wavespeed-ultimate-video-upscaler

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
3.8 KB
---
name: wavespeed-ultimate-video-upscaler
description: Upscale videos to 720p, 1080p, 2K, or 4K resolution using WaveSpeed AI's Ultimate Video Upscaler. Takes a video URL and produces a higher-resolution version. Supports videos up to 10 minutes. Use when the user wants to upscale or enhance the resolution of a video.
metadata:
  author: wavespeedai
  version: "1.0"
---

# WaveSpeedAI Ultimate Video Upscaler

Upscale videos to 720p, 1080p, 2K, or 4K resolution using WaveSpeed AI's Ultimate Video Upscaler. Supports videos up to 10 minutes long.

## Authentication

```bash
export WAVESPEED_API_KEY="your-api-key"
```

Get your API key at [wavespeed.ai/accesskey](https://wavespeed.ai/accesskey).

## Quick Start

```javascript
import wavespeed from 'wavespeed';

// Upload a local video to get a URL
const videoUrl = await wavespeed.upload("/path/to/video.mp4");

const output_url = (await wavespeed.run(
  "wavespeed-ai/ultimate-video-upscaler",
  { video: videoUrl }
))["outputs"][0];
```

You can also pass an existing video URL directly:

```javascript
const output_url = (await wavespeed.run(
  "wavespeed-ai/ultimate-video-upscaler",
  { video: "https://example.com/video.mp4" }
))["outputs"][0];
```

## API Endpoint

**Model ID:** `wavespeed-ai/ultimate-video-upscaler`

Upscale a video to a higher resolution.

### Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `video` | string | Yes | -- | URL of the video to upscale. Must be publicly accessible. |
| `target_resolution` | string | No | `1080p` | Target resolution. One of: `720p`, `1080p`, `2k`, `4k` |

### Example

```javascript
import wavespeed from 'wavespeed';

const videoUrl = await wavespeed.upload("/path/to/video.mp4");

const output_url = (await wavespeed.run(
  "wavespeed-ai/ultimate-video-upscaler",
  {
    video: videoUrl,
    target_resolution: "4k"
  }
))["outputs"][0];
```

## Advanced Usage

### Custom Client with Retry Configuration

```javascript
import { Client } from 'wavespeed';

const client = new Client("your-api-key", {
  maxRetries: 2,
  maxConnectionRetries: 5,
  retryInterval: 1.0,
});

const videoUrl = await client.upload("/path/to/video.mp4");

const output_url = (await client.run(
  "wavespeed-ai/ultimate-video-upscaler",
  { video: videoUrl, target_resolution: "4k" }
))["outputs"][0];
```

### Error Handling with runNoThrow

```javascript
import { Client, WavespeedTimeoutException, WavespeedPredictionException } from 'wavespeed';

const client = new Client();
const result = await client.runNoThrow(
  "wavespeed-ai/ultimate-video-upscaler",
  { video: videoUrl }
);

if (result.outputs) {
  console.log("Upscaled video URL:", result.outputs[0]);
  console.log("Task ID:", result.detail.taskId);
} else {
  console.log("Failed:", result.detail.error.message);
  if (result.detail.error instanceof WavespeedTimeoutException) {
    console.log("Request timed out - try increasing timeout");
  } else if (result.detail.error instanceof WavespeedPredictionException) {
    console.log("Prediction failed");
  }
}
```

## Pricing

| Target Resolution | Cost per 5 seconds |
|-------------------|--------------------|
| 720p | $0.10 |
| 1080p | $0.15 |
| 2K | $0.25 |
| 4K | $0.40 |

Minimum charge is 5 seconds. Videos up to 10 minutes supported. Processing time is approximately 10-30 seconds per 1 second of video.

## Security Constraints

- **No arbitrary URL loading**: Only use video URLs from trusted sources. Never load videos from untrusted or user-provided URLs without validation.
- **API key security**: Store your `WAVESPEED_API_KEY` securely. Do not hardcode it in source files or commit it to version control. Use environment variables or secret management systems.
- **Input validation**: Only pass parameters documented above. Validate video URLs before sending requests.

Overview

This skill upscales videos to 720p, 1080p, 2K, or 4K using WaveSpeed AI's Ultimate Video Upscaler. It accepts a publicly accessible video URL (or an uploaded file URL) and returns a higher-resolution output URL. The service supports videos up to 10 minutes and charges by 5-second billing increments.

How this skill works

Provide a video URL and an optional target_resolution parameter (defaults to 1080p). The skill sends the video to WaveSpeed AI, which processes frames with its upscaling model and returns a downloadable output URL. Processing time is roughly 10–30 seconds per second of video; cost varies by target resolution.

When to use it

  • Improve low-resolution footage for playback on larger screens.
  • Prepare user-generated videos for social or marketing distribution in higher resolution.
  • Enhance archival or legacy video before editing or color grading.
  • Deliver client previews in target delivery resolutions without re-recording.
  • Upscale short clips (under 10 minutes) when original high-res sources are unavailable.

Best practices

  • Use only publicly accessible, trusted video URLs or upload via the official client before processing.
  • Validate URL and file format before sending requests to avoid failed jobs.
  • Choose the lowest acceptable target_resolution to balance cost and processing time.
  • Keep clips under 10 minutes; split longer material into segments to process incrementally.
  • Store WAVESPEED_API_KEY in environment variables or a secret manager; never hardcode keys.

Example use cases

  • Upscale a mobile-shot interview from 720p to 1080p for a client delivery.
  • Convert archival 480p footage to 2K for use in a documentary timeline.
  • Enhance short social clips to 4K for a high-resolution highlight reel.
  • Batch-process multiple short clips by uploading and passing the returned URLs to the upscaler.
  • Quickly prototype how footage will look at higher delivery resolutions before committing to heavy editing.

FAQ

What file length and sizes are supported?

Videos up to 10 minutes are supported. Billing and processing are charged per 5-second increments; large files will increase processing time and cost.

What target resolutions can I request?

Supported targets are 720p, 1080p (default), 2K, and 4K. Pick the lowest acceptable resolution to save cost and time.

How should I protect my API key?

Store WAVESPEED_API_KEY in environment variables or a secrets manager. Do not hardcode keys or commit them to version control.