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

luma-dream-machine-ray-2-video-reframe

luma-dream-machine-ray-2-video-reframe

【效率与协作】Luma Dream Machine | Ray 2 | Video Reframe. Reframe videos to different aspect ratios using Luma Ray 2 AI. Triggers: video reframe, luma reframe, ray 2 reframe, change aspect ratio, reframe video, video crop ai, luma dream machine

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

技能说明

GitHub

name: luma-dream-machine-ray-2-video-reframe description: "Luma Dream Machine | Ray 2 | Video Reframe. Reframe videos to different aspect ratios using Luma Ray 2 AI. Triggers: video reframe, luma reframe, ray 2 reframe, change aspect ratio, reframe video, video crop ai, luma dream machine" allowed-tools: Bash(curl *), WebFetch

Luma Dream Machine | Ray 2 | Video Reframe

Reframe videos to different aspect ratios using Luma Dream Machine Ray 2. Intelligently reframes video content while preserving key subjects and composition, with optional prompt guidance for creative control.

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": "luma-dream-machine-ray-2-video-reframe",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/landscape-video.mp4",
      "aspect_ratio": "9:16"
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostring9:16The aspect ratio of the reframed video. Options: 1:1, 16:9, 9:16, 4:3, 3:4, 21:9, 9:21
grid_position_xinteger-X position of the grid for reframing
grid_position_yinteger-Y position of the grid for reframing
image_urlstring-Optional URL of the first frame image for reframing
promptstring-Optional prompt for reframing
video_urlstring-URL of the input video to reframe
x_endinteger-End X coordinate for reframing
x_startinteger-Start X coordinate for reframing
y_endinteger-End Y coordinate for reframing
y_startinteger-Start Y coordinate for reframing

Examples

Reframe landscape video to vertical for social media:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "luma-dream-machine-ray-2-video-reframe",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/travel-vlog.mp4",
      "aspect_ratio": "9:16",
      "prompt": "Keep the person centered in frame"
    }
  }'

Reframe to cinematic widescreen:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "luma-dream-machine-ray-2-video-reframe",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/nature-scene.mp4",
      "aspect_ratio": "21:9"
    }
  }'

Reframe with custom coordinates:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "luma-dream-machine-ray-2-video-reframe",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/group-video.mp4",
      "aspect_ratio": "1:1",
      "x_start": 100,
      "y_start": 50,
      "x_end": 500,
      "y_end": 450
    }
  }'

Related Models

Documentation

我的收藏