Reframe an image to a new aspect ratio
Changed onExtends input.image_url to input.aspect_ratio (width:height, like 9:16) by generating new margins around it, keeping every original pixel centered. Use it to fit one image to a story, square or feed post without cropping; to change what is in the image use POST /v1/images/edit. Takes PNG, JPEG or WebP; a canvas over 25 megapixels is scaled down. Returns the queued job immediately; poll GET /v1/jobs/{id} for status and results. Credits are charged only when the job completes successfully.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
any fal.ai endpoint id runs as sent. Defaults to fal-ai/bria/expand.
Extend an image to a new aspect ratio, keeping the original untouched. Files: a URL, a file_… id from POST /v1/files, or a base64 data URI up to 10 MB.
Example request
{
"input": {
"aspect_ratio": "9:16"
}
}Response
Job queued
Changes
- info
endpoint added
- info