← All models
Image Editing Reframe
image-editing-reframe
Image editby image-editing
The reframe endpoint intelligently adjusts an image's aspect ratio while preserving the main subject's position, composition, pose, and perspective
images
Pricing
- Price
- 5 cr / image
Prices in credits (1 credit = $0.01).
Data schema
Input
| Field | Type | Description |
|---|---|---|
| seed | — | The same seed and the same prompt given to the same version of the model will output the same image every time. |
| image_urlrequired | string | URL of the old or damaged photo to restore. |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
| aspect_ratio | stringenum: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3… | The desired aspect ratio for the reframed image. |
| output_format | stringenum: jpeg, png | The format of the generated image. |
| guidance_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| safety_tolerance | stringenum: 1, 2, 3, 4, 5, 6 | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. |
| num_inference_steps | integer | Number of inference steps for sampling. |
Output
| Field | Type | Description |
|---|---|---|
| seed | integer | |
| images | array |
