Bria Expand

Bria Expand

Playground

Try it on WavespeedAI!

Bria Expand expands images beyond their borders in high quality. Resizing the image by generating new pixels to expand to the desired aspect ratio. Trained exclusively on licensed data for safe and risk-free commercial use

Features

Bria Expand

Bria Expand extends an image beyond its original borders with intelligent outpainting. Keep the original content intact while the model hallucinates plausible surroundings, matching lighting, perspective, and texture. Built on licensed training data for safe commercial use in banners, thumbnails, hero images, and cinematic wides.


✨ Highlights

  • Context-aware outpainting: expands left/right/top/bottom while preserving subject integrity.
  • Layout control: choose a target aspect ratio (e.g., 16:9, 9:16) to fit ads, covers, or reels.
  • Production-ready pipeline: synchronous result retrieval or async polling; URL or BASE64 output.
  • Compositional consistency: lighting and perspective blend naturally with the original image.

🧩 Parameters (1:1 with the panel)

  • image* (required) Input image (URL or upload). This is preserved; the model generates the new perimeter around it.

  • aspect_ratio* (dropdown, required) Target canvas proportion after expansion (e.g., 16:9, 9:16, 1:1, 4:5, etc.). The model expands to reach this ratio.


🚀 How to Use (panel flow)

  1. Upload/Paste image (required). Start with a clean, reasonably high-res shot.
  2. Select aspect_ratio to match your target placement (e.g., 16:9 for banners, 9:16 for shorts).
  3. Click Run to generate the expanded canvas and download.

Tip: If a side looks too “invented,” try a slightly different ratio (e.g., from 16:9 to 3:2) or crop the original to nudge composition before expanding again.


💰 Pricing

  • Per run: $0.04

🧠 Workflow Tips

  • Plan the frame: choose the final placement (web hero, mobile cover) first, then set aspect_ratio.
  • Edge cleanliness: if seams appear, run a mild feather/refine-edge pass or a quick inpainting touch on the borders.
  • Brand safety: avoid generating around logos/trademarks that must remain untouched—mask and lock them in post if needed.
  • Batch resizing: standardize on a few aspect ratios (e.g., 1:1, 4:5, 16:9, 9:16) to streamline campaigns.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/bria/expand" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "aspect_ratio": "1:1",
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
imagestringYes-The URL of the image to erase.
aspect_ratiostringYes1:11:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9Aspect ratio for expansion.
enable_sync_modebooleanNofalse-If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
enable_base64_outputbooleanNofalse-If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

© 2025 WaveSpeedAI. All rights reserved.