Vidu Q3 और Q3 Pro मॉडल पर 50% छूट · केवल WaveSpeedAI | 20 मई – 2 जून

Expand

bria /

Bria Expand grows images beyond borders by generating new pixels to fit any aspect ratio; trained on licensed data for commercial use. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

image-to-image
Input

Drag & drop करें या upload के लिए click करें

preview
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.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

$0.04per run·~25 / $1

Next:

ExamplesView all

Related Models

README

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.
Accessibility:This website uses AI models provided by third parties.

Expand API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/bria/expand with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Expand below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/bria/expand" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "image": "https://example.com/your-input.jpg",
    "aspect_ratio": "1:1",
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("bria/expand", {
        "image": "https://example.com/your-input.jpg",
        "aspect_ratio": "1:1",
        "enable_sync_mode": false,
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "bria/expand",
    {
    "image": "https://example.com/your-input.jpg",
    "aspect_ratio": "1:1",
    "enable_sync_mode": false,
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Expand API — Frequently asked questions

What is the Expand API?

Expand is a Bria model for image editing, exposed as a REST API on WaveSpeedAI. Bria Expand grows images beyond borders by generating new pixels to fit any aspect ratio; trained on licensed data for commercial use. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Expand API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/bria/bria-expand.

How much does Expand cost per run?

Expand starts at $0.040 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Expand accept?

Key inputs: `image`, `aspect_ratio`, `enable_base64_output`, `enable_sync_mode`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/bria/bria-expand.

How long does Expand take to generate?

Average end-to-end generation time on WaveSpeedAI is around 13 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Expand outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Bria). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.