Pricing
Compare models →- Per job $0.04
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Text description of the new scene or background |
imageRequired | string | The URL of the image to erase. |
README
Bria Background Generation
Bria Background Generation replaces or generates realistic backgrounds from a text prompt or a reference image while preserving the foreground subject. It’s trained exclusively on licensed data for safe, low-risk commercial use across ads, e-commerce, social, portraits, and product photos.
✨ Highlights
- Dual input: drive backgrounds by prompt or match style/composition with a reference image.
- Subject preservation: clean edges and minimal color bleed around people and products.
- Style range: photorealistic, illustration, anime—swap backgrounds without touching the subject.
- Production-ready: predictable results that slot into real design pipelines.
- Licensed training data: built for compliant commercial deployment.
🧩 Parameters
- image* *(required)*
Foreground/subject image (URL or upload). Missing image will fail.
- prompt* *(required)*
Background description only (scene, lighting, style, materials, mood).
*Example:* “Epic anime city at night, neon signs, volumetric fog, blue-purple rim light.”
🚀 How to Use
- **Provide *image* (required)** — a clear, unobstructed subject works best.
- **Write *prompt* (required) — describe the background** only: environment, lighting, style.
- Click Run (e.g., $0.04) and download the generated image.
- Keep the same *image* and tweak the *prompt* to iterate styles while preserving composition.
💰 Pricing
- Per job $0.04
🧠 Prompting Tips (background-focused)
- Separate roles: keep the subject in the image; keep the background in the prompt.
- Lead with light: phrases like *golden hour*, *studio softbox*, *neon backlight*, *volumetric fog* quickly lift realism.
- Style anchors: add *photorealistic*, *cinematic*, *anime*, *watercolor*, or *minimalist* to control look.
- Materials & space: e.g., *concrete rooftop, wet asphalt, marble lobby, skylight, depth of field*.
- Consistent campaigns: reuse the same *image* and a prompt template; adjust color/weather for quick variants.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Generate Background Image Editing API example
The catalog lists POST https://api.opensi.com.ai/api/v3/bria/generate-background for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/aprkzw5xyxhf.jpg"
}Generate Background Image Editing API — Frequently asked questions
What is the Generate Background API?
Generate Background is a Bria model for image processing, exposed as a REST API on OpenSIAI. Swap image backgrounds using text or reference images; realistic results. Trained on licensed data for risk-free 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 Generate Background API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/bria/generate-background.
How much does Generate Background cost per run or per second?
Generate Background starts at $0.04 per run or per second. 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 Generate Background accept?
Key inputs: prompt, image. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/bria/generate-background.
How long does Generate Background take to generate?
Reported generation time on OpenSIAI is around 22 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Generate Background outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Bria). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
