ReplicateImage to imageComing soon

luma/reframe-image

luma/reframe-image is an image to image tool from Replicate that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Priced by usage

Pricing

model: photon-flash-1 (default) $0.013, photon-1 $0.039 per image.

Limits

Runs
In the background
Returns
image
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
imageURL or file—The image to reframe
modelJSONphoton-flash-1The model to use for the reframe generation
x_endnumber (whole)—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_endnumber (whole)—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.
prompttext—A prompt to guide the reframing generation
x_startnumber (whole)—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_startnumber (whole)—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_urltext—URL of the image to reframe
aspect_ratioJSON16:9Aspect ratio of the output
grid_position_xnumber (whole)—The x position of the input in the grid, in pixels. Controls horizontal positioning of the source within the target output dimensions.
grid_position_ynumber (whole)—The y position of the input in the grid, in pixels. Controls vertical positioning of the source within the target output dimensions.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "replicate",
    "model": "luma/reframe-image",
    "input": {}
  }'