Skip to content
Back to skills

Relay Video Gen

ASecurity

Multi-provider video generation with async polling and automatic model fallback Generate short videos via relay with provider priority fallback. Google Gemini Veo 3.1 (primary, direct API) → Xingjiabi (kling-video fallback). Async task-based: submit → poll → download. 4-8 second clips. Use when: creating video clips, marketing videos, animated content from text. Extensible: add providers by editing RELAY_PRIORITY in the script.

  • 121 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentsgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 8, 2026

npx -y skills add aAAaqwq/AGI-Super-Skills --skill relay-video-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Relay Video Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Relay Video Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aaaaqwq-relay-video-gen/badge)](https://www.skillsdirectory.com/skills/aaaaqwq-relay-video-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: relay-video-gen
description: |
  Multi-provider video generation with async polling and automatic model fallback
  Generate short videos via relay with provider priority fallback.
  Google Gemini Veo 3.1 (primary, direct API) → Xingjiabi (kling-video fallback).
  Async task-based: submit → poll → download. 4-8 second clips.
  Use when: creating video clips, marketing videos, animated content from text.
  Extensible: add providers by editing RELAY_PRIORITY in the script.
author: Daniel Li
---

# Relay Video Generation

Multi-provider video generation with async polling and automatic model fallback.

## Quick Start

```bash
uv run ~/.openclaw/skills/relay-video-gen/scripts/relay_video_gen.py \
  -p "A rotating blue globe with stars in background" \
  -f "globe.mp4"
```

## Parameters

| Flag | Description | Default |
|------|-------------|---------|
| `-p` | Video prompt (English) | Required |
| `-f` | Output filename (.mp4) | Required |
| `-d` | Duration in seconds (3-15) | `5` |
| `-a` | Aspect ratio: `16:9`, `9:16`, `1:1` | `16:9` |
| `-m` | Override model name | `kling-video` |
| `-P` | Force provider | `xingjiabi` |

## Examples

```bash
# 10-second vertical video for Reels/TikTok
uv run ~/.openclaw/skills/relay-video-gen/scripts/relay_video_gen.py \
  -p "A person typing on laptop in coffee shop, warm lighting" \
  -f "coffee.mp4" -d 10 -a 9:16

# Use veo3.1 model
uv run ~/.openclaw/skills/relay-video-gen/scripts/relay_video_gen.py \
  -p "Ocean waves crashing on beach at sunset" \
  -f "ocean.mp4" -m veo3.1-fast
```

## Workflow

1. Submit generation request → get `task_id`
2. Poll every 5s until `completed` / `failed` (max 10 min)
3. Download video to output path
4. If model fails/saturated → auto-try next model

## Model Fallback Order

Gemini (veo-3.1-generate-preview, direct Google API) → xingjiabi: kling-video → veo-3.1-fast → veo-3.1 → minimax/video-01 → grok-video-3

## Provider Details

See [references/providers.md](references/providers.md) for API formats, model status, and how to add providers.

Files in this skill

  • SKILL.md2 KB
  • references/providers.md2 KB
  • scripts/relay_video_gen.py10.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.