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)
- Upload/Paste image (required). Start with a clean, reasonably high-res shot.
- Select aspect_ratio to match your target placement (e.g., 16:9 for banners, 9:16 for shorts).
- 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
| Parameter | Type | Required | Default | Range | Description | 
|---|---|---|---|---|---|
| image | string | Yes | - | The URL of the image to erase. | |
| aspect_ratio | string | Yes | 1:1 | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 | Aspect ratio for expansion. | 
| enable_sync_mode | boolean | No | false | - | 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_output | boolean | No | false | - | 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
| Parameter | Type | Description | 
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) | 
| message | string | Status message (e.g., “success”) | 
| data.id | string | Unique identifier for the prediction, Task Id | 
| data.model | string | Model ID used for the prediction | 
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) | 
| data.urls | object | Object containing related API endpoints | 
| data.urls.get | string | URL to retrieve the prediction result | 
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output | 
| data.status | string | Status of the task: created,processing,completed, orfailed | 
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) | 
| data.error | string | Error message (empty if no error occurred) | 
| data.timings | object | Object containing timing details | 
| data.timings.inference | integer | Inference time in milliseconds |