Pricing
Compare models →$0.04 per generation.
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | The URL of the image to expand. |
aspect_ratioRequired | string | Target aspect ratio for the expanded image.1:12:33:23:44:34:55:49:1616:9"1:1" |
prompt | string | Optional English prompt for the expanded area. Leave empty for automatic guidance.JSON schema{
"x-rows": 3
} |
negative_prompt | string | Optional English description of content to avoid.JSON schema{
"x-rows": 2
} |
preserve_alpha | boolean | Preserve existing transparency in the input image.Default: true |
seed | integer | Optional random seed for reproducible generation. |
README
Bria Expand
Bria Expand extends an image beyond its borders to a selected aspect ratio. Generate surrounding content that matches the scene, with optional text guidance and transparency preservation.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Input image URL. Supported formats: JPEG, JPG, PNG, and WEBP. |
| aspect_ratio | Yes | Target ratio: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, or 16:9. Default: 1:1. |
| prompt | No | English description of the expanded area. Omit or leave empty for automatic guidance based on the input image. |
| negative_prompt | No | English description of content to avoid. |
| preserve_alpha | No | Preserve existing input transparency. Default: true. Set to false for an opaque result. Has no effect on images without an alpha channel. |
| seed | No | Random seed for reproducible generation. Omit for random results. |
How to Use
- Upload an image or provide its URL.
- Choose the target aspect ratio.
- Optionally describe the desired surroundings and any content to avoid.
- Keep
preserve_alphaenabled to retain existing transparency, or disable it for an opaque result.
- Optionally set a seed, then submit and retrieve the expanded image.
Pricing
$0.04 per generation.
Notes
- The image is centered within the target aspect ratio. If the target ratio matches the source ratio, the image is unchanged.
- Large inputs may be resized to keep the final image within 25 million pixels.
- Keep the main subject above roughly 15% of the canvas area for best results; this is a quality recommendation.
- Prompts are optional. Use English and avoid special characters.
- When preserving transparency, generated regions inherit alpha values from nearby original pixels along the same row or column.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Expand Image Editing API example
The catalog lists POST https://api.opensi.com.ai/api/v3/bria/expand for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251121/6784e7f4b50aebc7e17fe396/y719gn7k03oa.jpg",
"aspect_ratio": "1:1",
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"negative_prompt": "A cinematic ocean wave at sunrise, highly detailed",
"preserve_alpha": true,
"seed": 0
}Expand Image Editing API — Frequently asked questions
What is the Expand API?
Expand is a Bria model for image processing, exposed as a REST API on OpenSIAI. 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 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/expand.
How much does Expand cost per run or per second?
Expand 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 Expand accept?
Key inputs: prompt, image, aspect_ratio, seed, negative_prompt, preserve_alpha. 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/expand.
How long does Expand take to generate?
Reported generation time on OpenSIAI is around 20 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 Expand 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.
