Reframe an image with Bria Expand
Changed onExtend one image to a new aspect ratio with Bria Expand. The source pixels are kept exactly as they are, centered on the new canvas, and the model paints only the added area. Supply either an existing Ideogram image asset or raw image bytes, but not both. The canvas is sized from the source so that the whole source fits.
This operation is asynchronous. It returns as soon as the request is accepted; poll GET /v2/generations/{generation_id} for completion and results.
Request
- Base URL: (relative, and it does not resolve against the document’s source URL)
- URL: /v2/image/reframe/bria-expand
- Auth: one of:
- API key in header Api-Key
- HTTP bearer
Query parameters
When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.
Request body
Example request
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"aspect_ratio": "16:9",
"seed": 12345
}Response
An acknowledgement to poll with GET /v2/generations/{generation_id}.
Example response
{
"seed": 12345,
"generation_id": "generation_id",
"width": 0,
"height": 6
}Changes
- ○
added the new optional request property
/(media type: multipart/form-data) - ○
added the new optional request property
/(media type: application/json)
- ○
- ○
endpoint added
- ○