1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/bria-prompt-enhancer";
const data = {
"prompt": "a futuristic cityscape under a starry night"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Prompt for enhancement.
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.
Edited by Segmind Team on September 5, 2025.
Bria Prompt Enhancer is a versatile text-to-image model that is optimal for a wide range of creative uses. It features different specialized models - Base, Fast, and HD - suitable for tasks ranging from basic image creation to much more complex ones, such as vector graphics (like logos). Bria AI's advanced design makes it an outstanding model that produces the finest images, "safe" for commercial use. It also offers creators the freedom to manage the image generation workflow to achieve their visual forethought.
How do I choose between Base, Fast, and HD models? It depends on how you want your workflow and output to be: 'Base' gives a balanced performance, 'Fast' focuses on speed for rapid iterations, and 'HD' delivers the best quality for final outputs.
Can I use Bria AI for commercial projects? Yes, Bria AI is a reliable model for commercial projects as its generated images are "safe" to be used in professional projects.
How does the Prompt Enhancer improve results? If you want detailed prompts but are unable to provide the exact words, 'Prompt Enhancer' (which utilizes Meta Llama 3) creates elaborate prompts for you to ensure variety and visually imaginative results.
What types of vector graphics can I generate? The vector models will create logos, icons, and simple illustrations that are scalable and ensure high quality.
How does ControlNet guidance work? ControlNet lets you use reference images to move the generation process along the lines of your vision for the perfect result and style.
Is the API easy to integrate? The API comes with defined documentation, and it can be integrated easily to fulfil various functions. Therefore, it supports simple implementation and flexible parameters.