Bria Enhance Image

Bria AI creates precise, high-quality image enhancements and manipulations for diverse creative applications.


API

If you're looking for an API, you can choose from your desired programming language.

POST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 import requests import base64 # Use this function to convert an image file from the filesystem to base64 def image_file_to_base64(image_path): with open(image_path, 'rb') as f: image_data = f.read() return base64.b64encode(image_data).decode('utf-8') # Use this function to fetch an image from a URL and convert it to base64 def image_url_to_base64(image_url): response = requests.get(image_url) image_data = response.content return base64.b64encode(image_data).decode('utf-8') # Use this function to convert a list of image URLs to base64 def image_urls_to_base64(image_urls): return [image_url_to_base64(url) for url in image_urls] api_key = "YOUR_API_KEY" url = "https://api.segmind.com/v1/bria-enhance-image" # Request payload data = { "image": "https://segmind-resources.s3.amazonaws.com/input/a53c2a29-1e2c-473b-ad5a-2dfdb1184dfa-e8a1673f-7919-463e-b6fb-e12ad39140f1.jpeg", "visual_input_content_moderation": True, "visual_output_content_moderation": True, "seed": 123456, "steps_num": 30, "resolution": "4MP", "preserve_alpha": True } headers = {'x-api-key': api_key} response = requests.post(url, json=data, headers=headers) print(response.content) # The response is the generated image
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


imagestr *

Provides the URL of the source image. Use a valid URI for best results.


visual_input_content_moderationboolean ( default: true )

Applies moderation to input. Enable for sensitive content.


visual_output_content_moderationboolean ( default: true )

Moderates output content for safety. Enable to filter results.


seedint ( default: 123456 )

Sets result predictability. Use the same seed for repeatable results.

min : 1,

max : 999999


steps_numint ( default: 30 )

Defines the number of refinement iterations. Higher numbers provide more detail.

min : 10,

max : 50


resolutionenum:str ( default: 4MP )

Selects output image resolution. Choose based on display or quality needs.

Allowed values:


preserve_alphaboolean ( default: true )

Retains alpha channel from input to output. Use true for transparency.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Resources to get you started

Everything you need to know to get the most out of Bria Enhance Image

# Bria AI: Quickstart & Parameter Guide

Bria AI is a state-of-the-art generative image editor built on diffusion and fill algorithms. Use it to remove or swap backgrounds, erase objects, upscale, expand or smart-crop while preserving textures and alpha channels. Follow this 300–400-word guide to pick optimal settings for different workflows.

---

## 1. Core Parameters

- **image (URI, required):** Supply a high-resolution link (JPEG/PNG).  
- **visual_input_content_moderation** (bool, default true): Filter sensitive inputs.  
- **visual_output_content_moderation** (bool, default true): Enforce safe outputs.  
- **seed** (1–999 999, default 123456): Lock randomization. Reuse for identical results.  
- **steps_num** (10–50, default 30): Controls diffusion iterations. More steps = finer detail, but longer runtime.  
- **resolution** (`1MP`/`2MP`/`4MP`, default `4MP`): Choose based on final display.  
- **preserve_alpha** (bool, default true): Retain transparency for compositing.

---

## 2. Use-Case Settings

1. **E-Commerce Photography**  
   - Goal: Clean product cutouts, high-res catalog shots  
   - seed: any unique number  
   - steps_num: 35–45  
   - resolution: 2MP (web) or 4MP (print)  
   - preserve_alpha: true  
   - Moderation: input = true, output = false (if products aren’t sensitive)

2. **Digital Design & UI Mockups**  
   - Goal: Expand artboards, swap backgrounds, refine assets  
   - seed: fixed (e.g., 42) for version control  
   - steps_num: 25–30  
   - resolution: 1MP–2MP  
   - preserve_alpha: true  
   - Moderation: both = true

3. **Photography Retouching**  
   - Goal: Remove distractions, enhance textures, upscale  
   - seed: random for creative variety  
   - steps_num: 40–50  
   - resolution: 4MP  
   - preserve_alpha: false (unless compositing)  
   - Moderation: both = true

4. **Marketing & Social Media**  
   - Goal: Eye-catching backgrounds, creative fills  
   - seed: different for each campaign  
   - steps_num: 20–30  
   - resolution: 2MP  
   - preserve_alpha: optional  
   - Moderation: output = true

---

## 3. Pro Tips

- Always start with the highest-quality source.  
- Gradually bump **steps_num** in +5 increments to assess speed vs. detail trade-off.  
- Test different **seed** values to explore variations; lock it in once you hit the ideal look.  
- Use **preserve_alpha** when building layered compositions in Photoshop or Figma.  
- Enable moderation to comply with brand safety policies.  
- For large prints or billboards, 4MP at 45+ steps delivers crisp results.

---

By tailoring these parameters, Bria AI integrates seamlessly into any creative pipeline—automating tedious edits while giving you total control over quality and consistency.

Other Popular Models

Discover other models you might be interested in.

Cookie settings

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept all", you consent to our use of cookies.