luma/reframe-image 🖼️❓🔢📝 → 🖼️

⭐ Official ▶️ 47.0K runs 📅 Jun 2025 ⚙️ Cog 0.16.8
image-editing image-outpainting

About

Change the aspect ratio of any photo using AI (not cropping)

Example Output

Prompt:

"An explosion"

Output

Example output

Performance Metrics

18.84s Prediction Time
18.85s Total Time
1 Images
All Input Parameters
{
  "prompt": "An explosion",
  "image_url": "https://replicate.delivery/czjl/6iZ89qakg74mCVjFYeDk0GljoYQReoV0k7WwSjxXmCLcV53TA/tmpyf9dx02r.jpg",
  "aspect_ratio": "9:16"
}
Input Parameters
image Type: string
The image to reframe
model Default: photon-flash-1
The model to use for the reframe generation
x_end Type: 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.
y_end Type: 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.
prompt Type: string
A prompt to guide the reframing generation
x_start Type: 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_start Type: 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.
image_url Type: string
URL of the image to reframe
aspect_ratio Default: 16:9
Aspect ratio of the output
grid_position_x Type: 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 Type: integer
The y position of the input in the grid, in pixels. Controls vertical positioning of the source within the target output dimensions.
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
Generating image...
Queued...
Queued. Checking again in 5.5 seconds...
Queued...
Queued. Checking again in 8.0 seconds...
Dreaming...
Completed...
Generated image in 18.13sec
Downloading 161357 bytes
Downloaded 0.15MB in 0.51sec
Version Details
Version ID
ac0af8c72bde346b182969e12655d715cf1d7e0e15b8ce11669c87109336a914
Version Created
October 22, 2025
Run on Replicate →