Skip to content

Bria Expand (FIBO-Edit-1.5)

Integrate

Model id bria/fibo-edit-1.5/expand
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/fibo-edit-1.5/expand?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.04 40 API credits Run it on this page

Get API key
Bria AI Image Editing #image-expansion#outpainting#aspect-ratio#canvas-extension

Outpainting tool that extends an image to a new aspect ratio or custom canvas under 25 megapixels

Bria AI · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

Optional description of content for the added area. A plain canvas adjustment usually needs no description: omission asks the model simply to extend the existing image.

•required image_url
Drop a file, or

Image for expansion, supplied as a file or URL.

aspect_ratio

Final-image ratio setting that centers the original and extends the surrounding canvas. Specifying it takes precedence over both 'original_image_size' and 'original_image_location'.

Advanced negative_prompt · seed · retain_original_quality · preserve_alpha · return_model_output · canvas_size · original_image_size · original_image_location

Compatibility check for requests written for the SDXL expansion API route: supplying this unsupported input triggers an explicit rejection so its value cannot be silently lost. Use 'prompt' instead.

Random-generation seed, always included in the response whether supplied here or chosen randomly when omitted. A value taken from an earlier response can recreate its result.

Expanded-image dimensions paired with 'original_image_location'. Specify [width, height] for the final canvas, keeping its area below 25 megapixels.

Target [width, height] for the original image within the canvas. Supplying 'aspect_ratio' overrides this setting; otherwise, the image is resized to these dimensions before placement.

Placement coordinates [x, y] for the original image's upper-left corner, disregarded when 'aspect_ratio' is supplied. Placement beyond the canvas boundaries is allowed and crops the original.

POST /run/bria/fibo-edit-1.5/expand?wait=20 quote → $0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/fibo-edit-1.5/expand?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Bria Expand (FIBO-Edit-1.5)

Extends an image beyond its borders. Choose one of nine `aspect_ratio` values, or define a `canvas_size` as [width, height] with area under 25 megapixels plus `original_image_size` and `original_image_location`. An optional `prompt` describes the new area. `retain_original_quality` and `preserve_alpha` are on by default, and `return_model_output` is for diagnostics.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
image_urlrequired image
Typeurl · image
Image for expansion, supplied as a file or URL.
canvas_sizeoptional
Typeinteger[]
≤ 2 items≥ 2 items
Expanded-image dimensions paired with 'original_image_location'. Specify [width, height] for the final canvas, keeping its area below 25 megapixels.
aspect_ratiooptional
Typeenum
1:12:33:23:44:34:55:49:1616:9
Final-image ratio setting that centers the original and extends the surrounding canvas. Specifying it takes precedence over both 'original_image_size' and 'original_image_location'.
original_image_sizeoptional
Typeinteger[]
≤ 2 items≥ 2 items
Target [width, height] for the original image within the canvas. Supplying 'aspect_ratio' overrides this setting; otherwise, the image is resized to these dimensions before placement.
original_image_locationoptional
Typeinteger[]
≤ 2 items≥ 2 items
Placement coordinates [x, y] for the original image's upper-left corner, disregarded when 'aspect_ratio' is supplied. Placement beyond the canvas boundaries is allowed and crops the original.
promptoptional
Typestring | null
Optional description of content for the added area. A plain canvas adjustment usually needs no description: omission asks the model simply to extend the existing image.
seedoptional
Typeinteger | null
0 – 2,147,483,647
Random-generation seed, always included in the response whether supplied here or chosen randomly when omitted. A value taken from an earlier response can recreate its result.
negative_promptoptional
Typestring | null
Compatibility check for requests written for the SDXL expansion API route: supplying this unsupported input triggers an explicit rejection so its value cannot be silently lost. Use 'prompt' instead.
retain_original_qualityoptional
Typeboolean
Defaulttrue
Enable this to keep the mask-protected original pixels at full resolution without resampling. The model generates at roughly one megapixel, then upscales for larger canvases. Disabling this makes the result uniformly soft, which may conceal a seam against a textured background.
preserve_alphaoptional
Typeboolean
Defaulttrue
Preserves input transparency by extending the original alpha channel through edge replication, as needed to expand a cutout. Because generation operates in RGB, the model does not produce alpha. Disable this to receive flattened RGB output.
return_model_outputoptional
Typeboolean
Defaultfalse
Return an additional diagnostic frame to distinguish model errors from compositing errors, without changing the final image. It shows the model's result before the original is reinserted and seams are blended; any boundary defect already visible in this frame is a generation error, not a post-processing error.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo-edit-1.5/expand",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768
    },
    "seed": 42,
    "structured_instruction": {},
    "model_output": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768
    }
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
image
object {url, content_type, file_name, file_size, width, height}Image resulting from expansion.
seed
integerSeed applied during generation, allowing reproduction of the result.
structured_instruction
objectStructured prompt used to condition the model.
model_output
object {url, content_type, file_name, file_size, width, height} | nullUncomposited frame included only when 'return_model_output' was enabled. It has the requested canvas dimensions and contains the model's output without any pasted or blended content.

More models: Image Editing

For AI agents: this page as Markdown is at https://doitong.com/developers/models/bria/fibo-edit-1.5/expand.md. All models and guides: https://doitong.com/developers/llms.txt