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

luma-photon-reframe-image

luma-photon-reframe-image

【效率与协作】Luma Photon | Reframe Image. Reframe and extend images to different aspect ratios using Luma Photon AI. Triggers: luma, photon, reframe, extend image, outpainting, aspect ratio

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

技能说明

GitHub

name: luma-photon-reframe-image description: "Luma Photon | Reframe Image. Reframe and extend images to different aspect ratios using Luma Photon AI. Triggers: luma, photon, reframe, extend image, outpainting, aspect ratio" allowed-tools: Bash(curl *), WebFetch

Luma Photon | Reframe Image

Reframe and extend images to different aspect ratios using Luma Photon AI. Supports precise coordinate-based reframing, grid positioning, and prompt-guided content generation for extended areas.

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-photon-reframe-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/portrait-photo.jpg",
      "aspect_ratio": "16:9",
      "prompt": "Extend the scene with a modern office background"
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostring16:9The aspect ratio of the reframed image. enum: 1:1, 16:9, 9:16, 4:3, 3:4, 21:9, 9:21
grid_position_xintegerX position of the grid for reframing
grid_position_yintegerY position of the grid for reframing
image_urlstringURL of the input image to reframe
promptstringOptional prompt for reframing
x_endintegerEnd X coordinate for reframing
x_startintegerStart X coordinate for reframing
y_endintegerEnd Y coordinate for reframing
y_startintegerStart Y coordinate for reframing

Examples

Convert portrait to landscape:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "luma-photon-reframe-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/vertical-photo.jpg",
      "aspect_ratio": "21:9",
      "prompt": "Extend the scene naturally with matching environment on both sides"
    }
  }'

Reframe to square with grid positioning:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "luma-photon-reframe-image",
    "version": "0.0.1",
    "input": {
      "image_url": "https://example.com/landscape-photo.jpg",
      "aspect_ratio": "1:1",
      "grid_position_x": 50,
      "grid_position_y": 50
    }
  }'

Related Models

Documentation

我的收藏