pexels-footage
What it does
This skill finds and downloads royalty-free photos and video clips from Pexels. It is for creators who need real footage for videos or posts.
When to use it
- ✓When you need real photos or video clips instead of AI-made images.
- ✓When you want stock footage in a specific shape, such as vertical or widescreen.
- ✓When you are gathering visual assets for a post or video project.
Skill link
https://github.com/TeamWiseFlow/xiaobei/blob/master/skills/pexels-footage/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Download three vertical sunset clips from Pexels, each about ten seconds long, for my short video.”
5 new skills a week. 1 minute to read.
How it works
It searches Pexels using the keywords you give, filters by shape and length, and saves the files to a folder you choose.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Pexels Footage — 版权免费图片/视频素材下载
Use this skill when:
- You need real photos or video clips (not AI-generated) as source material
- User wants professional-looking footage or images from Pexels
- Preparing visual assets for content creation
Prerequisites: PEXELS_API_KEY must be set. Register free at https://www.pexels.com/api/
Usage
通过 PATH 调用 wrapper,无需拼接脚本路径。
下载图片
pexels-footage \
--type image \
--terms "sunset ocean,mountain landscape,forest path" \
--aspect 16:9 \
--output-dir ./assets/images \
[--max-clips 15]
下载视频
pexels-footage \
--type video \
--terms "sunset ocean" \
--aspect 9:16 \
--output-dir ./video_assets/footage \
--min-duration 5 \
--max-duration 30
重要:视频下载一次只允许下载一个(脚本已强制 --max-clips=1),不允许批量下载。下载时应根据 content-check 报告的时长缺口,通过 --min-duration 和 --max-duration 精确匹配所需时长,不要下载远超需求的素材。
Options
| Option | Default | Description |
|---|---|---|
--terms |
required | Comma-separated search keywords (one per scene) |
--type |
video |
image or video |
--aspect |
9:16 |
9:16 (portrait) | 16:9 (landscape) | 1:1 (square) |
--output-dir |
required | Directory to save downloaded files |
--min-duration |
5 |
Minimum clip duration in seconds (video only) |
--max-duration |
none | Maximum clip duration in seconds (video only). 强烈建议设置,避免下载过长的素材 |
--max-clips |
1 (video) / 15 (image) |
Maximum total files to download. 视频类型强制为 1 |
Output
图片输出
✅ Downloaded 12 images to ./assets/images/
pexels-sunset-ocean-abc123.jpg (1920x1280)
pexels-mountain-def456.jpg (2048x1365)
...
Returns JSON to stdout:
{
"ok": true,
"images": ["path1.jpg", "path2.jpg"],
"total": 12,
"output_dir": "./assets/images"
}
视频输出
{
"ok": true,
"clips": ["path1.mp4", "path2.mp4"],
"total": 12,
"output_dir": "./video_assets/footage"
}
Environment Variables
| Variable | Description |
|---|---|
PEXELS_API_KEY |
Pexels API key (required) |
Error Handling
| Error | Action |
|---|---|
PEXELS_API_KEY not set |
Check environment variables |
| No results found for term | Try broader/simpler keywords (English works best) |
| Download fails | Retry once; skip if fails again |
| Rate limit (HTTP 429) | Wait 60s, then retry |
FAQ
Do I need an account?
Yes, you need a free Pexels API key set in your environment.
Can it download many videos at once?
No, the skill downloads one video per run, so you should match the length you need.
Which shapes are supported?
The skill supports portrait 9 by 16, landscape 16 by 9 and square 1 by 1.
Details
Original description by the author
Search and download copyright-free images and video clips from Pexels API. Supports both photo search (--type image) and video search (--type video, default).
repo: TeamWiseFlow/xiaobei
Popularity
- GitHub stars
- 8.7k
- Ranking position
- #12335
- License
- —
- Updated
- 10/29/2026
Comments
- …
More skills from this repository
work-channel-binding
8.7kHelps your agent connect a Feishu or WeCom work chat channel to an agent team, with safe settings updates and checks that the link works.
pixabay-footage
8.7kHelps your agent search and download free stock photos and video clips from Pixabay as a backup when Pexels has no good match.
Similar skills
taste-application
280kHelps your agent create videos in a specific style. It can copy the editing rhythm from a reference video, generate new scenes, adjust colors, and edit everything together with other footage.
taste-distillation
280kLets your agent analyze videos to create a style pack. This includes colors, cutting rhythm, and visual elements that can be reused to create new videos with the same look.
ui-demo
280kHas your agent record polished UI demo videos. Useful for creating tutorials or showing how a web app works.