v1

latestOpenAPI 3.0.02026-07-13650400.5 KB
Image Generation

Prompt enhancement

Description

The /prompt_enhancer route is designed to boost users' creativity by transforming simple prompts into more detailed and vivid descriptions. This helps generate richer, more diverse images. (It is also available as a built-in flag in all of our /text-to-image routes, excluding tailored generation.)

We recommend using this feature by offering users a range of prompts to choose from before generating an image, enabling them to explore creative ideas.

*Works best with short to medium prompts of up to approximately 50 words.

Examples:

original prompt: A cat

<img src="https://bria-datasets.s3.amazonaws.com/api_doc/prompt_enhancement/cat_orig.png" width="200" height="200"/>

enhanced prompt: A black and white photograph of a sophisticated Siamese cat, sitting in a chair next to a large window, with the urban cityscape visible in the background

<img src="https://bria-datasets.s3.amazonaws.com/api_doc/prompt_enhancement/cat_bw.png" width="200" height="200"/>
post/prompt_enhancer

Headers

api_tokenstring required

Request body

promptstring

The original prompt that to enhance.

Response

Successful operation.

resultsstring

the new enhanced prompt