Index of every page on this site: llms.txt
All skills
pexoai avatar

/videoagent-video-studio

@f724267
by Pexopexoai/pexo-skills835 stars
51
Run it yourself

Generate short AI videos from text or images — text-to-video, image-to-video, and reference-based generation — with zero API key setup. Use when the user wants to create a video clip, animate an image, or generate video from a description.

Use this Skill: https://skilld.dev/gh/pexoai/pexo-skills/videoagent-video-studio

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

proxyREADME.md

≈988 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Video Studio Proxy

Vercel serverless proxy for videoagent-video-studio. All video generation routes through this proxy, so users never need API keys.

Deploy

npm install -g vercel
cd proxy
vercel deploy --prod

Environment Variables

Variable Required Description
FAL_KEY Yes Video generation API key
VALID_TOKENS No Comma-separated long-lived tokens. If set, free-tier rate limiting does not apply.
FREE_LIMIT_PER_IP No Max free generations per token (default: 100). 0 = unlimited.
MAX_TOKENS_PER_IP_PER_DAY No Max tokens an IP can issue per day (default: 3).
STATS_KEY No Bearer token required to access GET /api/stats. Leave empty for open access.
UPSTASH_REDIS_REST_URL For production Upstash Redis REST URL (auto-injected by Vercel integration).
UPSTASH_REDIS_REST_TOKEN For production Upstash Redis REST token (auto-injected by Vercel integration).

Production: Persistent Storage with Upstash Redis

Without Redis, usage data lives in memory and resets on cold starts — fine for testing, not for production.

Set up in 2 minutes via Vercel:

  1. Vercel dashboard → your proxy project → Integrations tab → search Upstash Redis → Add
  2. Create a Redis database and link it to your project
  3. Vercel automatically injects UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN
  4. Redeploy — done

Or use any Upstash Redis instance directly:

vercel env add UPSTASH_REDIS_REST_URL
vercel env add UPSTASH_REDIS_REST_TOKEN

With Redis enabled:

  • Rate limits work correctly across all serverless instances
  • Usage data survives cold starts and redeployments
  • /api/stats returns accurate lifetime totals

API Endpoints

GET /api/generate

Health check. Returns service info, model list, and free-tier config.

POST /api/token

Issue a free-tier token for anonymous users.

// Response
{ "token": "vs_...", "free_limit": 100, "free_limit_reset": "daily", "max_tokens_per_day": 3 }

Returns 429 when the IP has exceeded its daily token limit.

POST /api/generate

Generate a video.

Headers: Authorization: Bearer <token>

Body:

{
  "mode": "text-to-video",
  "prompt": "A cat walking in the rain, cinematic",
  "model": "kling",
  "duration": 5,
  "aspectRatio": "16:9",
  "imageUrl": "https://..."
}

Response:

{ "success": true, "videoUrl": "https://...", "mode": "text-to-video", "model": "kling", "duration": 5 }

Returns 401 if token is missing or invalid, 429 if generation limit reached, 503 if API key not configured.

GET /api/stats

Real-time usage statistics. Requires Authorization: Bearer <STATS_KEY> if STATS_KEY env is set.

JSON response (default):

{
  "using_kv": true,
  "total_generations": 142,
  "total_errors": 3,
  "total_tokens_issued": 48,
  "rate_limit_hits": { "token": 7, "ip": 2 },
  "by_model": { "kling": 55, "minimax": 32, "veo": 28, "seedance": 18, "grok": 9 },
  "by_mode":  { "text-to-video": 98, "image-to-video": 44 },
  "daily": [
    { "date": "2026-02-22", "total": 8 },
    { "date": "2026-02-23", "total": 14 }
  ],
  "timestamp": "2026-03-07T10:00:00.000Z"
}

HTML dashboard — open in browser or append ?ui=1:

https://your-proxy.vercel.app/api/stats?ui=1

Shows total generations, errors, tokens issued, rate-limit hits, per-model bar chart, and a 14-day daily trend — no extra tooling needed.

GET /api/status?jobId=

Async job status placeholder. Returns 501 — this proxy waits for completion and returns videoUrl directly.

Local Dev

cd proxy && npm install
FAL_KEY=your_key node ../scripts/local-server.cjs 3777

# In another terminal:
export VIDEO_STUDIO_PROXY_URL=http://localhost:3777
node tools/generate.js --prompt "A cat walking in the rain" --model kling

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill facilitates AI video generation through a customizable proxy and CLI tool. While the implementation follows best practices for secret management, there is a theoretical surface for indirect prompt injection due to the processing of untrusted user input, and a potential for metadata exposure if the included proxy's statistics endpoint is deployed without the optional authentication key.

  • Socket2mo

    1 alert: gptAnomaly

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    7/22 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f724267. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Activeupdated 9 months ago
version
2.1.0
author
pexoai
emoji
🎬
Other metadata
tags
[
  "video",
  "video-generation",
  "text-to-video",
  "image-to-video",
  "veo",
  "grok",
  "kling",
  "seedance",
  "minimax",
  "hunyuan",
  "pixverse"
]
metadata
{
  "openclaw": {
    "emoji": "🎬",
    "install": [
      {
        "id": "node",
        "kind": "node",
        "label": "No dependencies needed — all calls go through the hosted proxy"
      }
    ]
  }
}
  • video
  • video-generation
  • text-to-video
  • image-to-video
  • veo
  • kling
  • grok
  • seedance
  • minimax
  • hunyuan
  • pixverse

README badge

README badge for pexoai/pexo-skills/videoagent-video-studio

Generates short AI videos from text descriptions or images using seven backend models (Kling, Veo, Minimax, Grok, Seedance, Hunyuan, Pixverse) with no API key setup required. Supports text-to-video, image-to-video, and reference-based generation modes, returning a playable video URL after processing the user's request.

Generated from the current SKILL.md.

Does this require API keys?
No. Requests go through a hosted proxy by default with zero API key setup. You can optionally set VIDEO_STUDIO_PROXY_URL and VIDEO_STUDIO_TOKEN to use a custom proxy.
Which models support image-to-video?
minimax, kling, veo, pixverse, grok, and seedance all support image-to-video. hunyuan does not.
What video durations are supported?
Typically 4–10 seconds. seedance extends to 4–12 seconds. The --duration parameter accepts values in seconds.
Can I use a reference image for consistent output?
Yes. minimax, kling, veo, hunyuan, grok, and seedance support reference-based generation for character consistency and style transfer.
What aspect ratios are available?
16:9, 9:16, 1:1, 4:3, and 3:4.

Generated from the current SKILL.md. These answers refresh after source changes.