Bria 3.2 Text to Image
Bria 3.2 AI transforms natural language into stunning visuals for diverse creative applications — with Base, Fast, and HD modes to match your creative needs.
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
36
37
38
39
40
41
42
43
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-text-to-image"
# Request payload
data = {
"prompt": "A professional headshot of a CEO",
"mode": "base",
"aspect_ratio": "1:1",
"seed": 654321,
"negative_prompt": "no storms",
"steps_num": 40,
"text_guidance_scale": 7,
"medium": "photography",
"prompt_enhancement": True,
"enhance_image": True,
"prompt_content_moderation": True,
"content_moderation": False,
"ip_signal": False
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
The prompt you would like to use to generate images. Bria currently supports prompts in English only, excluding special characters.
Choose output quality with 'base' for normal, 'fast' for speed, 'hd' for high detail.
Set shape like '16:9' for wide, '1:1' for square formats.
Allowed values:
Use specific numbers like '654321' to ensure repeatable results.
min : 1,
max : 999999
Remove unwanted elements e.g., 'no storms' for calm views.
Adjust detail with '50' for intricate detail, '20' for faster processing.
min : 20,
max : 50
Control prompt adherence with '10' for precise or '1' for flexible outputs.
min : 1,
max : 10
Define style; use 'photography' for realism, 'art' for creativity.
Allowed values:
Enhance creativity. 'True' for variation, 'false' for consistency.
Improve clarity with 'true' for better textures, 'false' for raw visuals.
Scan prompts for safety with 'true' on, 'false' off.
Moderate images for compliance. 'True' if needed, 'false' otherwise.
Alert for IP content with 'true'; 'false' to ignore.
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 3.2 Text to Image
# Bria AI Image Generation Toolkit: Quick-Start Guide
Unlock powerful generative and editing capabilities with Bria AI. This guide walks you through optimal parameter settings for Text-to-Image, Reimagine and Text-to-Vector APIs in common scenarios.
## 1. Core Concepts
- **prompt**: Be specific—“vintage coffee shop interior at sunset”
- **mode**: `fast` for rapid prototyping, `base` for balanced speed/detail, `hd` for production-ready
- **aspect_ratio**: Match destination—`16:9` for banners, `1:1` for social posts, `9:16` for stories
- **seed**: Lock repeatable outputs (e.g. `123456`)
- **steps_num**: 20–30 for quick drafts, 40–50 for fine detail
- **text_guidance_scale**: 3–5 to explore creativity, 7–10 for strict adherence
- **negative_prompt**: Exclude unwanted items (e.g. “no text, no crowds”)
- **medium**: `photography` for realism, `art` for painterly styles
- **enhancements & moderation**: Enable `prompt_enhancement` and `enhance_image` for polished results; turn on `content_moderation` or `ip_signal` when compliance matters
## 2. Use Cases & Recommended Settings
### A. E-Commerce Mockups
Generate product renders and lifestyle scenes.
- mode: `base`
- aspect_ratio: `4:5` or `1:1`
- steps_num: 30
- text_guidance_scale: 8
- medium: `photography`
- seed: pick a fixed number for catalog consistency
- negative_prompt: “no people” if only product silhouettes are needed
### B. Game Asset & Concept Art
Design characters, environments or UI icons.
- mode: `fast` (sketch phase), switch to `hd` for final art
- aspect_ratio: `16:9` (environment), `1:1` (icons)
- steps_num: 20 (fast) → 45 (hd)
- text_guidance_scale: 5 (concept) → 9 (detailed)
- medium: `art`
- prompt_enhancement: true to spark variations
### C. Branding & Logos (Text-to-Vector)
Iterate on shapes, logos and icons.
- endpoint: Text-to-Vector API
- prompt: “minimalist leaf logo”
- mode: `base`
- seed: consistent for version control
- medium: `art`
- aspect_ratio defaults as vector
- steps_num: 25
- text_guidance_scale: 7
- negative_prompt: “no gradients, no text”
### D. Photo Recolor & Texture Editing
Apply new color palettes or textures to existing images.
- endpoint: Reimagine API
- input_image: upload sketch/photo
- medium: `art` or `photography`
- prompt: specify “warm autumn palette” or “oil paint texture”
- steps_num: 35
- text_guidance_scale: 6
- enhance_image: true
- negative_prompt: “no background noise”
## 3. Tips for Consistency
1. Lock a **seed** to reproduce exact visuals.
2. Use **negative_prompt** to filter out artifacts or unwanted elements.
3. Balance **speed vs. quality** by toggling `fast` vs. `hd` modes and adjusting `steps_num`.
4. For high compliance or proprietary art checks, enable `content_moderation` and `ip_signal`.
Experiment with these settings to find your sweet spot—Bria AI scales from quick ideation to polished deliverables in any workflow!
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

idm-vton
Best-in-class clothing virtual try on in the wild

sdxl-inpaint
This model is capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask

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
