v1

latestOpenAPI 3.0.02026-07-13650400.5 KB
Image Generation

Generate Image - HD model

Description

The /text-to-image/hd Route is dedicated for projects demanding the utmost in image detail and clarity. This model allows for generating high-quality, photorealistic and artistic, images with unparalleled resolution of 1920x1080 (1:1 1536x1536) pixel, supporting a variety of aspect ratios natively to accommodate diverse creative needs.

Advanced Customization and Access:

Beyond the API, developers interested in deeper customization can access BRIA's models directly through Hugging Face. This alternative provides access to the underlying model source code, offering additional features such as ControlNets: <a href="https://huggingface.co/spaces/briaai/BRIA-2.2-ControlNet-Canny" target="_blank">Canny</a> , <a href="https://huggingface.co/spaces/briaai/BRIA-2.2-ControlNet-Depth" target="_blank">Depth</a>, and <a href="https://huggingface.co/spaces/briaai/BRIA-2.2-ControlNet-Recoloring" target="_blank">ReColoring</a>. This option is ideal for developers seeking advanced control over the image generation process and those who wish to integrate cutting-edge AI directly into their workflows.

Examples:

prompt: A photo of detailed short female blond hair viewed from behind, with rich texture and clearly visible individual strands that give depth and realism, and featuring subtle waves reflect light

BRIA HD model 2.2:

<img src="https://bria-datasets.s3.amazonaws.com/api_doc/hd/seed_459779534.png" width="400"/> <img src="https://bria-datasets.s3.amazonaws.com/api_doc/hd/seed_939823113.png" width="400"/>

prompt: A portrait of a Beautiful and playful ethereal singer, art deco, fantasy, intricate art deco golden designs, elegant, highly detailed, sharp focus, blurry background, teal and orange shades

BRIA HD model 2.2:

<img src="https://bria-datasets.s3.amazonaws.com/api_doc/hd/image+(42).png" width="400"/> <img src="https://bria-datasets.s3.amazonaws.com/api_doc/hd/image+(50).png" width="400"/>

post/text-to-image/hd/{model_version}

Path parameters

model_version'2.2' required

The model version you would like to use in the request.

Headers

api_tokenstring required

Request body

promptstring

The prompt you would like to use to generate images. Bria currently supports prompts in English only, excluding special characters.

num_resultsinteger

How many images you would like to generate.

aspect_ratio'1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9'

The aspect ratio of the image.

syncboolean

Determines the response mode. When true, responses are synchronous, and applicable to single-image requests. With false, responses are asynchronous, immediately providing URLs for images that are generated in the background. Use polling for the URLs to retrieve images once ready.

seedinteger

You can choose whether you want your generated result to be random or predictable. You can recreate the same result in the future by using the seed value of a result from the response with the prompt, model type and model version. You can exclude this parameter if you are not interested in recreating your results. This parameter is optional.

negative_promptstring

Specify here elements that you didn't ask in the prompt, but are being generated, and you would like to exclude. This parameter is optional. Bria currently supports prompts in English only.

steps_numinteger

The number of iterations the model goes through to refine the generated image. This parameter is optional.

text_guidance_scalenumber float

Determines how closely the generated image should adhere to the input text description. This parameter is optional.

medium'photography' | 'art'

Which medium should be included in your generated images. This parameter is optional.

prompt_enhancementboolean

When set to true, enhances the provided prompt by generating additional, more descriptive variations, resulting in more diverse and creative output images. Note that turning this flag on may result in a few additional seconds to the inference time.

Response

Successful operation.