copilot-api: Skill for Claude Code

.agents/skills/copilot-api-videogen/SKILL.md

copilot-api-videogen is a skill for Claude Code, Codex from caozhiyuan/copilot-api. It costs 159 tokens per session (1,768 once invoked), scanned A, original, MIT.

A video-generation tool that submits text or image-based requests to an online video service and lets you check, wait for, and download the resulting jobs.

In plain words
What is it for?
Use it to create short clips, animate an image, transition between first and last frames, make loops, or guide a scene with reference images.
Why use it?
It handles video creation that may finish later rather than requiring the agent to wait during the initial request. It supports starting from text, a still image, or selected reference frames.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is caozhiyuan/copilot-api's own configuration. It tells Claude Code and Codex how to work on copilot-api itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything copilot-api configures →

About the project

caozhiyuan/copilot-api is a local AI gateway that exposes OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages interfaces for multiple providers. It lets clients such as Claude Code, OpenCode, and Codex connect through one endpoint to GitHub Copilot, the built-in Codex provider, and other configured services.

caozhiyuan/copilot-api · 1,136 stars · on GitHub · caozhiyuan.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to caozhiyuan/copilot-api. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/caozhiyuan/copilot-api/dev/.agents/skills/copilot-api-videogen/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/caozhiyuan/copilot-api

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for copilot-api-videogen

README.md
[![agentmods](https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/copilot-api-videogen/github.svg)](https://agentmods.dev/skills/caozhiyuan/copilot-api/copilot-api-videogen)
Your own site
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/copilot-api-videogen"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/copilot-api-videogen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for copilot-api-videogen

Your own site · 80×15
<a href="https://agentmods.dev/skills/caozhiyuan/copilot-api/copilot-api-videogen"><img src="https://agentmods.dev/badge/skills/caozhiyuan/copilot-api/copilot-api-videogen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,768 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00159 $0.01768
Opus 5.5 $0.00064 $0.00707
Sonnet 5.5 $0.00032 $0.00354
Haiku 4.5 $0.00016 $0.00177

Measured 3d ago against content hash 98981bab2f07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

copilot-api-videogen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/video_gen.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/copilot-api-videogen/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copilot API Video Generation Skill

Generate short AI videos through a running copilot-api gateway using the bundled zero-dependency Node.js/Bun CLI (scripts/video_gen.mjs).

copilot-api exposes native asynchronous xAI video generation (POST /v1/videos/generations and GET /v1/videos/{request_id}) backed by xai/grok-imagine-video-1.5 (requires the xai provider to be enabled in copilot-api).

When to use

  • Generate a video from a text prompt (text-to-video, 1-15s, up to native 1080p)
  • Animate an existing still image (image-to-video via --image)
  • Interpolate between a pinned first frame and pinned last frame (or create seamless loops via --image + --last-frame)
  • Guide a scene with up to 14 reference images (--ref-image, referenced as <IMAGE_0>, <IMAGE_1>, ...)
  • Submit jobs asynchronously (submit) and check/wait/download later (status / wait)

When not to use

  • Programmatic UI motion, charts, or animations better implemented in CSS, Canvas, SVG, or code
  • Deterministic trimming, transcoding, subtitle burn-in, or concatenation of existing videos (use ffmpeg)
  • Generating a still image (use copilot-api-imagegen)

Quick start

Resolve <SKILL_DIR> relative to this SKILL.md (in this repository: .agents/skills/copilot-api-videogen):

export VIDEO_GEN=".agents/skills/copilot-api-videogen/scripts/video_gen.mjs"

Preview a request with --dry-run before spending video generation credits:

node "$VIDEO_GEN" generate \
  --prompt "A small paper boat drifting across a misty alpine lake at sunrise, gentle ripples, slow low tracking camera shot" \
  --duration 5 \
  --aspect-ratio 16:9 \
  --resolution 720p \
  --dry-run

Decision tree

  1. Input mode:
    • Text only -> --prompt "..." (optionally --aspect-ratio, --duration, --resolution)
    • Animate a still image -> --image path/to/first-frame.png (optional --prompt; omit --aspect-ratio unless overriding)
    • Pinned start + end frame (or loop) -> --image start.png --last-frame end.png (optional --prompt)
    • Character/prop consistency across references -> repeatable --ref-image (up to 14) referenced in --prompt as <IMAGE_0>, <IMAGE_1>, ... (use --resolution 720p or 480p for reference-to-video; note that if --image is also set, --image takes <IMAGE_0> and --ref-image starts at <IMAGE_1>)
  2. Execution mode:
    • Standard single video -> generate (submits, prints request_id immediately, polls until done, downloads MP4 atomically to --out)
    • Launching multiple clips in parallel or non-blocking submit -> submit (returns request_id immediately), then status / wait --request-id <id> --out ...

Read the full file on GitHub · 99 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 99 lines · 159 tokens per session scan A 98981bab2f07

Subscribe to this mod's changes

copilot-api-videogen is a skill published in the GitHub repository caozhiyuan/copilot-api (1,136 stars, last pushed yesterday), licensed MIT. It adds 159 tokens to every session and 1,768 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

copilot-api-videogen compared with skills from other repositories

copilot-api-videogen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
copilot-api-videogencaozhiyuan/copilot-apiSkill1.1kyesterdayMITA159Claude Code, Codex
zenrouter-videoZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouter-web-searchZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouter-imageZenRouter/ZenRouterSkill51mo agoMITA73Claude Code, Codex
zenrouterZenRouter/ZenRouterSkill51mo agoMITA82Claude Code, Codex
zenrouter-embeddingsZenRouter/ZenRouterSkill51mo agoMITA65Claude Code, Codex
zenrouter-web-fetchZenRouter/ZenRouterSkill51mo agoMITA62Claude Code, Codex