Generate a Bria image
Use CometAPI Bria POST /bria/text-to-image to generate 1MP photorealistic images from text with enhancements and flexible aspect ratios.
prompt, keep num_results at 1, and start with aspect_ratio: "1:1" unless you already know the final layout you need.
Use this route when
- You want a finished image in one call
- You do not need masks, image inputs, or task polling
- You want a photorealistic Bria path that is easier to operationalize through CometAPI
Start with this request
- Keep the prompt short and concrete
- Use
num_results: 1for your first request - Start with
aspect_ratio: "1:1"unless the target layout is already fixed - Download returned URLs promptly if you need long retention
Response behavior on CometAPI
Bria’s official docs describe a broader generation pipeline and discuss async status flows. On CometAPI, this route uses a simplified JSON request and returns a finalresult array immediately rather than a request_id plus status_url.
Authorizations
Bearer token authentication. Use your CometAPI key.
Body
English text prompt for image generation.
"A paper boat floating on calm water at sunrise."
Number of images to generate. Use 1 for the simplest integration test.
Requested output aspect ratio.
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 Optional seed for reproducible results.
Optional exclusions for the generated image.
Optional refinement step count.
Optional prompt adherence setting.
Optional visual medium.
photography, art Optional prompt enhancement switch.
Optional image detail enhancement switch.
Optional moderation switch.
Optional IP warning flag.
Optional sync hint. CometAPI returns final results immediately without setting this field.
Response
Image generation result.