计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
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 快照 · 自动分类 · 以原作者文档为准
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.
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"
}
}'
| Parameter | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | string | 16:9 | The aspect ratio of the reframed image. enum: 1:1, 16:9, 9:16, 4:3, 3:4, 21:9, 9:21 |
| grid_position_x | integer | X position of the grid for reframing | |
| grid_position_y | integer | Y position of the grid for reframing | |
| image_url | string | URL of the input image to reframe | |
| prompt | string | Optional prompt for reframing | |
| x_end | integer | End X coordinate for reframing | |
| x_start | integer | Start X coordinate for reframing | |
| y_end | integer | End Y coordinate for reframing | |
| y_start | integer | Start Y coordinate for reframing |
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
}
}'