Chuyển đến nội dung
Skillpedia
Dựng video8.7k · #12335

pexels-footage

Skill này làm gì

Skill này tìm và tải ảnh cùng clip video miễn phí bản quyền từ Pexels. Nó dành cho người làm nội dung cần footage thật cho video hoặc bài đăng.

Khi nào nên dùng

  • ✓Khi bạn cần ảnh hoặc clip video thật thay vì hình do AI tạo.
  • ✓Khi bạn muốn footage stock có khung hình cụ thể, chẳng hạn dọc hoặc ngang.
  • ✓Khi bạn đang thu thập tài nguyên hình ảnh cho một bài đăng hoặc dự án video.

Liên kết skill

https://github.com/TeamWiseFlow/xiaobei/blob/master/skills/pexels-footage/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/TeamWiseFlow/xiaobei/blob/master/skills/pexels-footage/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tải ba clip hoàng hôn dọc từ Pexels, mỗi clip khoảng mười giây, cho video ngắn của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tìm trên Pexels bằng các từ khóa bạn cung cấp, lọc theo khung hình và độ dài, rồi lưu file vào thư mục bạn chọn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Tôi có cần tài khoản không?

Có. Bạn cần một khóa API Pexels miễn phí được đặt trong môi trường của mình.

Nó có thể tải nhiều video cùng lúc không?

Không. Skill tải một video mỗi lần chạy, nên bạn nên chọn đúng độ dài cần dùng.

Những khung hình nào được hỗ trợ?

Skill hỗ trợ chân dung 9 nhân 16, phong cảnh 16 nhân 9 và vuông 1 nhân 1.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
8.7k
Vị trí xếp hạng
#12335
Giấy phép
—
Cập nhật
29/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự