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.

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 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
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 *

URL of the input image for processing. Use a clear, high-resolution image for best results.


visual_input_content_moderationboolean ( default: 1 )

Applies moderation to input visuals. Enable for images with sensitive content.


visual_output_content_moderationboolean ( default: 1 )

Applies moderation to output visuals. Useful for ensuring appropriate content in the result.


desired_increaseint ( default: 4 )

Determines the resolution increase factor. Use 2 for moderate or 4 for high resolution enhancement.


preserve_alphaboolean ( default: true )

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

ParameterTypeDefaultDescription
imagestringURL of your input image
desired_increaseinteger2Upscaling factor: 2 (moderate) or 4 (aggressive)
preserve_alphabooleantrueKeep transparency (PNG only)
visual_input_content_moderationbooleanfalseFlag sensitive inputs
visual_output_content_moderationbooleanfalseEnforce safe outputs

Use-Case Scenarios

  1. 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
  2. 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
  3. Digital Art & Design

    • Inpaint artifacts or erase unwanted elements
    • Set desired_increase: 4 for fine‐art prints
    • Preserve alpha for sketch overlays
  4. UGC Platforms & Compliance

    • Always flag: visual_input_content_moderation: true
    • Optionally sanitize: visual_output_content_moderation: true

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.

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.