Bria Reimagine

Bria AI Reimagine transforms reference images into detailed, styled visuals with creative flexibility.


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 38 39 40 41 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-reimagine" # Request payload data = { "structure_image_url": "https://segmind-resources.s3.amazonaws.com/input/a2fd894f-6e14-4a8c-9125-124a5dddddcd-dd2c8055-316b-4bab-8d2b-00738cd94a67.png", "structure_ref_influence": 0.75, "prompt": "A vibrant autumn-themed coffee shop interior, with orange and red leaves visible through the windows, cozy lighting enhanced with golden hues, and the pastries decorated for fall, maintaining the original layout and perspective from the reference image", "fast": True, "seed": 42, "enhance_image": False, "prompt_content_moderation": True, "content_moderation": False, "ip_signal": False, "include_generation_prefix": True, "steps_num": 12 } 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


structure_image_urlstr ( default: https://segmind-resources.s3.amazonaws.com/input/a2fd894f-6e14-4a8c-9125-124a5dddddcd-dd2c8055-316b-4bab-8d2b-00738cd94a67.png )

Provides a URL for a reference image. Use detailed images for complex compositions.


structure_ref_influencefloat ( default: 0.75 )

Sets influence of reference image. Increase for precise adherence.

min : 0,

max : 1


promptstr *

Input text for desired image. Descriptive prompts yield detailed outputs.


fastboolean ( default: true )

Enables speed over detail. Use for quick results.


seedint ( default: 42 )

Sets image seed for reproducibility. Useful for recreating identical images.


enhance_imageboolean ( default: 1 )

Enhances image details. Enable for high-quality outputs.


prompt_content_moderationboolean ( default: true )

Moderates prompt content for safety. Disable for unmoderated input.


content_moderationboolean ( default: 1 )

Enforces image content guidelines. Disable for unrestricted creation.


ip_signalboolean ( default: 1 )

Detects potential IP issues. Useful in professional settings.


include_generation_prefixboolean ( default: true )

Adds model generation prefix. Enable for consistency with standards.


steps_numint ( default: 12 )

Sets refinement iterations. Higher values increase detail.

min : 4,

max : 50

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 Reimagine

# Bria AI Reimagine: Quick-Start Guide

Bria AI Reimagine lets you preserve a reference layout while exploring new textures, colors, and styles. Follow this guide to tune parameters for different workflows—from rapid prototyping to final high-fidelity renders.

## 1. Getting Started
1. **Structure Reference**  
   - Upload via `structure_image_url` or `structure_image_file`.  
   - Aim for a clear, high-resolution image (≥512×512px) to avoid artifacts.  
2. **Prompt Crafting**  
   - Be descriptive: specify subjects, materials, lighting, mood, and camera angle.  
   - Example: “A top-down wireframe of a mobile app in neon pastel, with smooth shadows.”

## 2. Tuning Core Parameters
- **structure_ref_influence (0.0–1.0)**  
  • 0.2–0.5 for loose, painterly interpretations  
  • 0.6–0.8 for balanced style + form  
  • 0.9–1.0 for strict layout adherence  
- **fast (boolean)**  
  • true: draft mode (8–12 steps)  
  • false: final mode (20–35 steps)  
- **steps_num (4–50)**  
  • 4–12: rough layouts, quick iterations  
  • 15–25: mid-quality proofs  
  • 30–50: ultra-detailed final assets  
- **seed (int)**  
  • Use a fixed seed for reproducibility (A/B tests, versioning).  
- **enhance_image (boolean)**  
  • Toggle on for sharpening and clarity in HD renders.  

## 3. Content & Safety Controls
- **prompt_content_moderation**: on by default—disable if you need unfiltered creative prompts.  
- **content_moderation**: on to enforce brand-safe and policy-compliant images.  
- **ip_signal**: detect potential copyright conflicts in professional pipelines.

## 4. Preset Configurations by Use Case

| Use Case                  | influence | fast | steps | enhance_image | notes                                |
|---------------------------|-----------|------|-------|---------------|--------------------------------------|
| Rapid Sketches            | 0.3       | true | 8–12  | false         | Generate multiple concepts fast.     |
| Storyboarding & Layouts   | 0.7       | true | 12–20 | false         | Balanced speed + structure fidelity. |
| High-Fidelity Final Art   | 0.9–1.0   | false| 30–40 | true          | Max detail for print or portfolio.   |
| UI/Product Mockups        | 1.0       | false| 15–25 | true          | Preserve grid, theme variants.       |
| Social Media Campaigns    | 0.6       | false| 20–30 | true          | Consistent style across assets.      |

## 5. Pro Tips
- **ControlNet Modes**: Try edge detection for line art, depth maps for 3D scenes, or color grids to enforce brand palettes.  
- **Iterative Refinement**: Start with fast drafts, pick a favorite, then bump up steps and enhance for the final version.  
- **Color Consistency**: Include exact hex codes in your prompt and combine with ControlNet color grid guidance.  
- **Batch Generation**: Loop over seeds or influence values to produce A/B style variations in one script.

By adjusting these parameters and workflows, you’ll get the most out of Bria AI Reimagine—consistent layouts with endless creative freedom. Happy generating!

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.