Communitygithub.com

FilippTrigub/abra

使用 fal.ai 的 LTX-2.3 Fast 圖像轉影片模型,將靜態圖片轉換為短影片剪輯。無需 GPU,完全在 fal.ai 的無伺服器基礎架構上執行。

abra 是什麼?

此技能可將靜態影像(如照片或插圖)透過 fal.ai 雲端上的 LTX-2.3 Fast 影片擴散模型,快速產生動態短影片。使用者只需提供一張影像與一段動作提示詞,模型即可根據設定產生 6 至 20 秒的影片。此技能完全基於雲端運行,本機無需 GPU,僅需設定 FAL_API_KEY 環境變數即可開始使用。支援多種解析度(最高 4K)、幀率(24-50 FPS)、畫面比例(自動、16:9、9:16)與 AI 音訊生成。輸出為 MP4 格式,並臨時託管於 fal.media CDN 提供下載連結。適合需要動畫化產品照、人像或社群媒體內容,但缺乏本機 GPU 或 VRAM 的使用者。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/FilippTrigub/abra/tree/HEAD/skills/animate-image

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

liven — 圖像轉影片(雲端)

使用執行於 fal.ai 雲端基礎架構上的 LTX-2.3 Fast 影片擴散模型,將靜態影像賦予生命。提供一張影像與一段動作提示詞;模型會根據設定產生短影片剪輯(6-20 秒)。

此技能目錄(SKILL.md 所在位置)以下簡稱 $SKILL_DIR。

基於雲端。 本機無需 GPU。需要 FAL_API_KEY 環境變數。 定價:$0.04/秒(1080p),$0.08/秒(1440p),$0.16/秒(4K)。


使用時機

當使用者想要以下功能時,可使用此技能:

  • 將照片或插圖動畫化為短影片,無需本機 GPU
  • 從靜態影像產生電影運鏡(例如:慢速推近、平移、光線閃爍)
  • 從產品照或肖像產生社群媒體影片內容
  • 使用更高解析度(最高 4K),不受本機 VRAM 限制

設定(僅首次執行)

cd "$SKILL_DIR" && uv sync

設定 FAL_API_KEY 環境變數:

export FAL_API_KEY="your-api-key-here"

代理程式工作流程

1. 詢問使用者

在開始動畫化影像之前,我需要先了解以下資訊:

💬 動作提示詞(必填)
   描述您想要的動作,例如:
   "慢速電影推近,金色時刻光線,微妙的鏡頭漂移"

🎬 剪輯設定
   - duration     — 影片長度(秒)(預設:6,選項:6, 8, 10, 12, 14, 16, 18, 20)
                    注意:長度 >10 秒僅支援 25 FPS 與 1080p
   - resolution   — 輸出品質(預設:1080p,選項:1080p, 1440p, 2160p/4K)
   - aspect_ratio — 影片畫面比例(預設:auto,選項:auto, 16:9, 9:16)
   - fps          — 每秒幀數(預設:25,選項:24, 25, 48, 50)
   - generate_audio — 生成 AI 音訊來配合影片(預設:true)

📁 輸入 / 輸出目錄(預設:./input 與 ./output)

等待使用者回應後再繼續。

2. 編輯 config.json

根據使用者的選擇寫入或更新 $SKILL_DIR/config.json。

3. 執行

cd "$SKILL_DIR" && uv run python scripts/img2vid.py --config config.json

4. 回報結果

告知使用者:

  • 輸出檔案路徑
  • 影片長度與解析度
  • 成本估算(依據長度與解析度)
  • 直接下載網址(影片會暫時託管於 fal.media)

設定參考

鍵數值預設值說明
input_dir路徑./input包含來源影像的資料夾
output_dir路徑./output輸出資料夾
prompt字串(必填)動作描述
duration整數6影片長度(秒,6-20)
resolution字串1080p輸出解析度:1080p, 1440p, 2160p
aspect_ratio字串auto畫面比例:auto, 16:9, 9:16
fps整數25每秒幀數:24, 25, 48, 50
generate_audio布林值true為影片生成 AI 音訊
end_image_url字串null可選的結束幀,用於過渡影片

常見呼叫方式

# 使用動作提示詞進行動畫化(使用預設值:6秒, 1080p, 25fps)
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "慢速電影推近,金色時刻光線"

# 生成更長的 10 秒影片
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "樹林中的微風" --duration 10

# 建立社群媒體用的直式影片
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "微妙的鏡頭移動" --aspect-ratio 9:16

# 4K 品質(較高成本:$0.16/秒)
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "電影縮放" --resolution 2160p --duration 8

# 較高幀率以獲得更流暢的動作
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "快速動作場景" --fps 48

# 停用音訊生成
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "靜默冥想場景" --no-audio

# 建立兩張影像之間的過渡
cd "$SKILL_DIR" && uv run python scripts/img2vid.py \
  --prompt "平滑變形過渡" \
  --end-image /path/to/end_image.jpg

輸出

每張輸入影像會在 output_dir 中產生一個 .mp4 剪輯,命名為 <image_stem>.mp4。該影片也會暫時上傳至 fal.media CDN,並在控制台輸出中提供下載網址。

影片中繼資料(解析度、fps、長度)會在生成後印出。


錯誤處理

  • 缺少 FAL_API_KEY → 顯示包含設定說明的明確錯誤訊息
  • 無效的影像格式 → 顯示支援格式的錯誤訊息(PNG, JPEG, WebP, AVIF, HEIF)
  • API 錯誤 → 傳播 fal.ai 的錯誤訊息
  • 網路問題 → 含重試邏輯的明確錯誤訊息

定價參考

解析度每秒價格
1080p$0.04
1440p$0.08
2160p (4K)$0.16

範例:

  • 6 秒影片 1080p = $0.24
  • 10 秒影片 1080p = $0.40
  • 10 秒影片 4K = $1.60

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

FilippTrigub/abra

>- Auto-describe and caption images using a local vision-language model. Writes a JSON sidecar per image containing a one-sentence description, a suggested Instagram caption with hashtags, and detected content tags.

FilippTrigub/abra

>- Animated caption pipeline. Use this skill when the user wants to burn word-by-word animated captions into videos — using Whisper for transcription and pycaps for rendering. Supports default minimalist style or a futuristic CSS theme with alternating gold/magenta glowing words.

FilippTrigub/abra

>- Cut videos into segments, rearrange them, and produce an output video with a specific cuts-per-second rate. Uses MoviePy for video manipulation. Prioritizes audio transcription for timestamped cutting, falls back to adaptive scene detection.

FilippTrigub/abra

>- Edit a region of a video using a text prompt via Wan2.1-VACE inpainting. Supports two modes: background (auto-segment via rembg) or region (rectangle defined by fractions). Requires a CUDA GPU with at least 8 GB free VRAM.

FilippTrigub/abra

>- Video enhancement pipeline. Use this skill when the user wants to sharpen, colour grade, warm, or normalise the audio of videos — including presets for natural, cinematic, or vivid looks.

FilippTrigub/abra

Generate videos from text or images using Higgsfield's multi-model cloud platform. Supports kling, seedance, dop, and dop-preview models. Uses a small preset layer for common creative styles. Auto-detects text-to-video or image-to-video based on input. No GPU required.

FilippTrigub/abra

>- Remove the background from every frame of a video using AI (BiRefNet-general via rembg). Outputs transparent-background video or composites onto a solid colour or image. Requires a CUDA GPU with at least 3 GB free VRAM.

相關技能