Task Router Skill
Task Router
Generate and extend videos using Google's Veo 3.1 Fast model via WaveSpeed AI. Supports text-to-video, image-to-video, and video extension. Features up to 4K resolution, audio generation, and chained extensions up to 148 seconds. Use when the user wants to create videos from text or images, or extend existing Veo-generated videos.
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install chengzeyi/wavespeed-veo-31-fastInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
Generate and extend videos using Google's Veo 3.1 Fast model via the WaveSpeed AI platform. Supports text-to-video, image-to-video, and video extension with up to 4K resolution and optional audio generation.
export WAVESPEED_API_KEY="your-api-key"
Get your API key at wavespeed.ai/accesskey.
import wavespeed from 'wavespeed';
const output_url = (await wavespeed.run(
"google/veo3.1-fast/text-to-video",
{ prompt: "A drone shot flying over a lush tropical island at sunrise" }
))["outputs"][0];
The image parameter accepts an image URL. If you have a local file, upload it first with wavespeed.upload() to get a URL.
import wavespeed from 'wavespeed';
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"google/veo3.1-fast/image-to-video",
{
image: imageUrl,
prompt: "The flowers sway gently in the breeze"
}
))["outputs"][0];
Extend a Veo-generated video by 7 seconds per run (up to 20 extensions, 148 seconds total):
// First, generate a video
const video_url = (await wavespeed.run(
"google/veo3.1-fast/text-to-video",
{ prompt: "A cat walking through a garden" }
))["outputs"][0];
// Then extend it
const extended_url = (await wavespeed.run(
"google/veo3.1-fast/video-extend",
{
video: video_url,
prompt: "The cat jumps onto a fence and looks around"
}
))["outputs"][0];
Model ID: google/veo3.1-fast/text-to-video
Generate videos from text prompts with optional audio.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt |
string | Yes | -- | Text description of the video to generate |
aspect_ratio |
string | No | `... |
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# WaveSpeedAI Veo 3.1 Fast Video Generation
Generate and extend videos using Google's Veo 3.1 Fast model via the WaveSpeed AI platform. Supports text-to-video, image-to-video, and video extension with up to 4K resolution and optional audio generation.
## Authentication
```bash
export WAVESPEED_API_KEY="your-api-key"
```
Get your API key at [wavespeed.ai/accesskey](https://wavespeed.ai/accesskey).
## Quick Start
### Text-to-Video
```javascript
import wavespeed from 'wavespeed';
const output_url = (await wavespeed.run(
"google/veo3.1-fast/text-to-video",
{ prompt: "A drone shot flying over a lush tropical island at sunrise" }
))["outputs"][0];
```
### Image-to-Video
The `image` parameter accepts an image URL. If you have a local file, upload it first with `wavespeed.upload()` to get a URL.
```javascript
import wavespeed from 'wavespeed';
const imageUrl = await wavespeed.upload("/path/to/photo.png");
const output_url = (await wavespeed.run(
"google/veo3.1-fast/image-to-video",
{
image: imageUrl,
prompt: "The flowers sway gently in the breeze"
}
))["outputs"][0];
```
### Video Extend
Extend a Veo-generated video by 7 seconds per run (up to 20 extensions, 148 seconds total):
```javascript
// First, generate a video
const video_url = (await wavespeed.run(
"google/veo3.1-fast/text-to-video",
{ prompt: "A cat walking through a garden" }
))["outputs"][0];
// Then extend it
const extended_url = (await wavespeed.run(
"google/veo3.1-fast/video-extend",
{
video: video_url,
prompt: "The cat jumps onto a fence and looks around"
}
))["outputs"][0];
```
## API Endpoints
### Text-to-Video
**Model ID:** `google/veo3.1-fast/text-to-video`
Generate videos from text prompts with optional audio.
#### Parameters
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `prompt` | string | Yes | -- | Text description of the video to generate |
| `aspect_ratio` | string | No | `...Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.