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:1 3:4 4:3 9:16 16:9 9:21 21: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-1 photon-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_ratio string Aspect ratio of the output
"16: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 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" 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.
7adc71e1414f Updated: 6/26/2026 308.2K runs
cinemasetfree.com