Bria Increase Resolution
Seamlessly upscale and manipulate images while preserving the highest fidelity and safety standards.
API
If you're looking for an API, you can choose from your desired programming language.
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
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-increase-resolution"
# Request payload
data = {
"image": "https://segmind-inference-inputs.s3.amazonaws.com/17cd85f6-602b-4f08-8d76-01564d2c7bde-299f0158-c9d6-4142-bddb-b8c5fa61504a.jpeg",
"visual_input_content_moderation": False,
"visual_output_content_moderation": False,
"desired_increase": 4,
"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
Attributes
URL of the input image for processing. Use a clear, high-resolution image for best results.
Applies moderation to input visuals. Enable for images with sensitive content.
Applies moderation to output visuals. Useful for ensuring appropriate content in the result.
Determines the resolution increase factor. Use 2 for moderate or 4 for high resolution enhancement.
Determines if alpha channel is retained. Recommended to keep true for images with 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 Increase Resolution
Bria AI v2 Image Editing Guide
A concise reference for developers and creators to harness the full power of Bria AI v2 for upscaling, background removal, inpainting, and detail enhancement.
Core Parameters
Parameter | Type | Default | Description |
---|---|---|---|
image | string | – | URL of your input image |
desired_increase | integer | 2 | Upscaling factor: 2 (moderate) or 4 (aggressive) |
preserve_alpha | boolean | true | Keep transparency (PNG only) |
visual_input_content_moderation | boolean | false | Flag sensitive inputs |
visual_output_content_moderation | boolean | false | Enforce safe outputs |
Use-Case Scenarios
- •
E-commerce & Product Catalogs
- •Remove backgrounds with RMBG 2.0
- •Upscale at
desired_increase: 2
for web,4
for print - •Enable
preserve_alpha: true
for layered compositing
- •
Social Media & Marketing
- •Extend or crop your scene via Generative Expand
- •Use
desired_increase: 2
to maintain a tight file-size - •Moderate outputs (
visual_output_content_moderation: true
) for brand safety
- •
Digital Art & Design
- •Inpaint artifacts or erase unwanted elements
- •Set
desired_increase: 4
for fine‐art prints - •Preserve alpha for sketch overlays
- •
UGC Platforms & Compliance
- •Always flag:
visual_input_content_moderation: true
- •Optionally sanitize:
visual_output_content_moderation: true
- •Always flag:
4. Pro Tips for Best Results
- •Start high-res: Upscaling works best on ≥1 MP images.
- •Choose factor wisely:
- •2× for social/web use
- •4× for large-format or print
- •Transparency workflows: Always set
preserve_alpha: true
for UI assets. - •Moderation strategy: Only enable flags when necessary to reduce latency.
- •Polling cadence: Poll every 2–5 seconds to balance responsiveness and rate limits.
Leverage these recommendations to streamline your image pipeline and deliver professional-grade visuals with Bria AI v2.
Other Popular Models
Discover other models you might be interested in.
sdxl-controlnet
SDXL ControlNet gives unprecedented control over text-to-image generation. SDXL ControlNet models Introduces the concept of conditioning inputs, which provide additional information to guide the image generation process

storydiffusion
Story Diffusion turns your written narratives into stunning image sequences.

codeformer
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.

sd2.1-faceswapper
Take a picture/gif and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training
