POST
javascript
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); } })();
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


promptstr *

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.

Bria AI: Advanced Text-to-Image Generation Suite

What is Bria Prompt Enhancer?

Bria Prompt Enhancer is a versatile text-to-image model that is excellent 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.

Key Features of Bria Prompt Enhancer

  • It is integrated with multiple specialized models - Base, Fast, HD - that offer different speed-quality requirements
  • It supports vector graphic generation capabilities to design logos and icons, which can be modified or resized without quality deterioration
  • It comes with a built-in Prompt Enhancer (powered by Meta Llama 3) that offers better prompt interpretation for desired results
  • It has a ControlNet that is useful for a more focused visual guidance, especially when reference images are used
  • It ensures the output images are "commercial-safe" and maintain a consistent quality
  • Its latest technology supports advanced prompt processing for visually impressive results

Best Use Cases

  • Digital Marketing: Useful in creating campaign visuals and social media content that stand out
  • Product Design: It helps design product mockups and concept visualizations
  • Branding: Its vector generation feature helps in designing scalable logos, icons, and other brand assets
  • Creative Projects: It simplifies the process of artistic creations and fantasy images
  • UI/UX Design: Its advanced architecture enables creators to design the UI components (like buttons, text fields, etc.) and UX elements (such as images, icons, etc.)
  • Editorial Content: It is also quite useful for authors, as their articles and publications can come alive with unique illustrations

Prompt Tips and Output Quality

  • Provide clear prompts, describing them in detail to specify the style, mood, and key elements
  • You can be as creative as you like by implementing different themes like "fantasy" or "surreal"
  • If you have a vision, then specify the lighting, perspective, and atmosphere to achieve it
  • You will get precise results by integrating ControlNet guidance with detailed prompts
  • You can test the speed vs. quality in your workflow while working (playing) with different models
  • Besides basic prompts, you can utilize elaborate and creative prompts by using the Prompt Enhancer

FAQs

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 will deliver 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 lack the exact words to describe them, the Prompt Enhancer (which uses Meta Llama 3) works for you to create elaborate prompts for 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 will let 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.