界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

extract-frame

extract-frame

【效率与协作】Extract Frame. Extract the first, middle, or last frame from a video as an image. Triggers: extract frame, video frame, video to image, screenshot video, thumbnail

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: extract-frame description: "Extract Frame. Extract the first, middle, or last frame from a video as an image. Triggers: extract frame, video frame, video to image, screenshot video, thumbnail" allowed-tools: Bash(curl *), WebFetch

Extract Frame

Extract a single frame from a video file. Choose to extract the first, middle, or last frame, returning it as an image.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "extract-frame",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/video-clip.mp4",
      "frame_type": "first"
    }
  }'

Parameters

ParameterTypeDefaultDescription
frame_typestringfirstType of frame to extract. Options: first, middle, last
video_urlstring-URL of the video file to extract a frame from.

Examples

Extract first frame:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "extract-frame",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/presentation.mp4",
      "frame_type": "first"
    }
  }'

Extract middle frame for thumbnail:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "extract-frame",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/music-video.mp4",
      "frame_type": "middle"
    }
  }'

Extract last frame:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "extract-frame",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/timelapse.mp4",
      "frame_type": "last"
    }
  }'

Related Models

Documentation

我的收藏