Last updated

Bria Products Overview

Image Generation:

  • Use the /text-to-image endpoints to generate any image you would like, based on the provided prompt and additional guidence methods.

  • Use the /text-to-vector endpoint to generate any illustrative vector graphics you would like, based on the provided prompt and additional guidence methods.

  • Utilize the /reimagine endpoint to generate new images based on reference images, incorporating elements such as structure and composition from existing visuals.

  • Enhance your prompts with the /prompt_enhancer route or use the built-in prompt enhancement feature in /text-to-image routes to create more detailed and vivid descriptions, resulting in richer and more diverse image outputs.


Tailored Generation:

The Tailored Generation APIs allows you to manage and train Tailored Models that preserve and faithfully reproduce your visual IP (photos, illustrations, vectors). You can train Tailored Models through our Console or implement training on your platform via API. Check out our Console here.

Training Process Overview

To train a tailored generation model:

  1. Create a Project: Use the /projects endpoint to create a project and define your IP type and medium.

  2. Create a Dataset: Use the /datasets endpoint to create a dataset within your project.

  3. Upload Images: Upload images to your dataset using the /datasets/{dataset_id}/images endpoint. Images must be 1024x1024px minimum.

  4. Prepare Dataset: Review auto-generated captions and use the /datasets/{id} endpoint to set status to 'completed'.

  5. Create Model: Use the /models endpoint to create a model, selecting light or max training version.

  6. Start Training: Initiate training using the /models/{id}/start_training endpoint. Training takes 1-3 hours.

  7. Monitor Progress: Check training status using the /models/{id} endpoint until status shows 'Completed'.

  8. Generate Images: Once trained, your model can be used in multiple ways:

    • Use the /text-to-image/tailored/{model_id} endpoint for text-to-image generation
    • Use the /text-to-vector/tailored/{model_id} endpoint for generating illustrative vector graphics
    • Use the /reimagine/tailored/{model_id} endpoint for generating using a structure reference image
    • Access through the Bria platform interface

Campaign Generation

Bria's Campaign Generation set of APIs streamlines the process of creating, managing, and customizing advertising campaigns, providing powerful tools for scalable and efficient campaign generation.

These tools include:

  • /create: Generate advertising campaigns using Template IDs and content inputs, enabling rapid creation of professional-grade ad variations.

  • /brands: Retrieve a list of brands along with their associated logos, colors, and fonts, providing the building blocks for brand-aligned campaigns.

  • /templates: Access a list of templates, including their IDs, names, number of scenes, and a preview of the first scene, to assist in campaign planning and selection.

  • /templates/{template_id}: Fetch detailed JSON data for a specific template, including all its elements, enabling precise customization and adaptation.


Product Shot Editing

Bria offers a variety of solutions for products and apps in the eCommerce industry, which allow to enhance product imagery for online stores and product catalogs.

These solutions include:

  • /cutout: Create clean and professional product cutouts.

  • /packshot: Generate professional-standard packshots with customizable background colors and optimal product placement.

  • /shadow: Add consistent and customizable shadow effects, supporting regular and floating shadows for product images with transparent backgrounds.

  • /lifestyle_shot_by_text: Enrich product images by placing them in various environments using textual descriptions, enhancing appeal and providing context.

  • /lifestyle_shot_by_image: Generate product images in enriched environments using a reference image for inspiration, allowing for creative and unique presentations.


Video Editing

Bria's new Video Editing product empowers developers to transform video content effortlessly.

The first feature, Background Removal, allows users to remove backgrounds from videos while retaining the original resolution and framerate.

This capability supports a variety of formats as input, including mp4, avi, and mov. More features will be introduced soon, expanding the product to meet diverse video editing needs.


Image Editing

Bria supports both isolated and registration-required routes for editing images:

  • /increase_resolution - Upscale any image.

  • /image_expansion - Expand the image beyond its original borders.

  • /crop - Crop an image tightly around the region of interest without a background.

  • /background/remove - Remove the background of an image.

  • /background/blur - Create a blur effect on the background.

  • /background/replace - Generate new backgrounds for an image.

  • /erase_foreground - Erase the foreground from a provided image.

  • /eraser - Erase elements from an image using manually created or auto-generated masks.

  • /gen_fill (coming soon) - GenFill generates objects in a specific region of an image, using a mask and a textual prompt.

  • /caption - Generate a caption describing the given image.

Registering Images before editing:

  • Use the /register endpoint to send a new image to Bria without being uploaded to the database. This is the recommended method to onboard images to Bria when needed.

With the response from the Upload/Register Routes (visual_id), the following routes can be used without any particular order:

  • /person/info (soon to be deprecated) - By using the /person/info route, you can understand the possible changes for every person in the image.
  • /person/modify - Modify person-related elements in the image. In order to use this route you should first use the route /person/info.