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 usagePricing
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
| Field | Kind | Default | Description |
|---|---|---|---|
image | URL or file | — | The image to reframe |
model | JSON | photon-flash-1 | The model to use for the reframe generation |
x_end | number (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_end | number (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. |
prompt | text | — | A prompt to guide the reframing generation |
x_start | number (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_start | number (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_url | text | — | URL of the image to reframe |
aspect_ratio | JSON | 16:9 | Aspect ratio of the output |
grid_position_x | number (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_y | number (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": {}
}'