Skip to main content
POST

Overview

Starts growing an image to the aspect ratio you ask for. The original is centred on the larger canvas at its own size and the new area is generated, optionally guided by a prompt. The result is a new image in your library; the original is not modified. The call answers 202 with the pending image: poll Get Image on that mediaId until its status is COMPLETED.
Accepted formats: JPEG, PNG and WEBP, up to 25 MB. An image that already has the requested ratio is rejected with 400.

Request Body

string
ID of an image in your media library. Required unless imageUrl is given.
string
Public URL of the image. It is saved to your library before processing. Required unless media is given.
string
required
Target ratio: ratio_9_16, ratio_1_1 or ratio_16_9.
string
What the new area should show, in English (up to 500 characters). Without it the scene is continued from the image itself.

Response Fields

string
The new library image being made at the requested ratio. Its url arrives in Get Image when status is COMPLETED.
string
The image it is grown from.
string
PROCESSING — the expansion is running.
string
The ratio that was produced.
number
Credits charged by this call.

Status Codes

If Bria fails later, the pending image ends as status: "FAILED" in Get Image and the credits are refunded.

Get Image

Follow the expansion and read the result

Remove Image Background

Cut the subject out with a transparent background

Create Video

Use the image in a video

Authorizations

x-api-key
string
header
required

Body

application/json
aspectRatio
enum<string>
required

Target aspect ratio

Available options:
ratio_9_16,
ratio_1_1,
ratio_16_9
media
string

ID of an image in your media library. Required unless imageUrl is given.

imageUrl
string<uri>

Public URL of a JPEG, PNG or WEBP image (up to 25 MB). Imported into your library before processing. Required unless media is given.

prompt
string

What the new area should show (English). Optional.

Maximum string length: 500

Response

Expansion started

success
boolean
message
string
data
object