luma/reframe-image
Change the aspect ratio of any photo using AI (not cropping)
Capabilities
Cost
Community model (estimated from hardware time)
Input Parameters
| Name | Type | Description | Default | Constraints |
|---|---|---|---|---|
aspect_ratio | string | Aspect ratio of the output | "16:9" | 1:13:44:39:1616:99:2121:9 |
grid_position_x | integer | The x position of the input in the grid, in pixels. Controls horizontal positioning of the source within the target output dimensions. | — | — |
grid_position_y | integer | The y position of the input in the grid, in pixels. Controls vertical positioning of the source within the target output dimensions. | — | — |
image | string(uri) | The image to reframe | — | — |
image_url | string | URL of the image to reframe | — | — |
model | string | The model to use for the reframe generation | "photon-flash-1" | photon-flash-1photon-1 |
prompt | string | A prompt to guide the reframing generation | — | — |
x_end | integer | The x end of the crop bounds, in pixels. Defines the right boundary where your source will be placed in the output frame. The distance between x_start and x_end determines the resized width of your content. | — | — |
x_start | integer | The x start of the crop bounds, in pixels. Defines the left boundary where your source will be placed in the output frame. The distance between x_start and x_end determines the resized width of your content. | — | — |
y_end | integer | The y end of the crop bounds, in pixels. Defines the bottom boundary where your source will be placed in the output frame. The distance between y_start and y_end determines the resized height of your content. | — | — |
y_start | integer | The y start of the crop bounds, in pixels. Defines the top boundary where your source will be placed in the output frame. The distance between y_start and y_end determines the resized height of your content. | — | — |
aspect_ratiostringAspect ratio of the output
"16:9"grid_position_xintegerThe x position of the input in the grid, in pixels. Controls horizontal positioning of the source within the target output dimensions.
grid_position_yintegerThe y position of the input in the grid, in pixels. Controls vertical positioning of the source within the target output dimensions.
imagestringThe image to reframe
image_urlstringURL of the image to reframe
modelstringThe model to use for the reframe generation
"photon-flash-1"promptstringA prompt to guide the reframing generation
x_endintegerThe x end of the crop bounds, in pixels. Defines the right boundary where your source will be placed in the output frame. The distance between x_start and x_end determines the resized width of your content.
x_startintegerThe x start of the crop bounds, in pixels. Defines the left boundary where your source will be placed in the output frame. The distance between x_start and x_end determines the resized width of your content.
y_endintegerThe y end of the crop bounds, in pixels. Defines the bottom boundary where your source will be placed in the output frame. The distance between y_start and y_end determines the resized height of your content.
y_startintegerThe y start of the crop bounds, in pixels. Defines the top boundary where your source will be placed in the output frame. The distance between y_start and y_end determines the resized height of your content.
7adc71e1414fUpdated: 7/25/2026308.2K runs
cinemasetfree.com