---
title: "Generate Bria images"
method: POST
path: "/bria/text-to-image"
---

# Generate Bria images

`POST /bria/text-to-image`

Create one or more Bria images from a text prompt. For the most predictable first request, keep num_results at 1 and use a square aspect ratio.

## Request body

- object
  - `prompt` string, required — English text prompt for image generation.
  - `num_results` integer — Number of images to generate. Use 1 for the simplest integration test.
  - `aspect_ratio` '1:1' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '16:9' — Requested output aspect ratio.
  - `seed` integer — Optional seed for reproducible results.
  - `negative_prompt` string — Optional exclusions for the generated image.
  - `steps_num` integer — Optional refinement step count.
  - `text_guidance_scale` integer — Optional prompt adherence setting.
  - `medium` 'photography' | 'art' — Optional visual medium.
  - `prompt_enhancement` boolean — Optional prompt enhancement switch.
  - `enhance_image` boolean — Optional image detail enhancement switch.
  - `prompt_content_moderation` boolean — Optional moderation switch.
  - `ip_signal` boolean — Optional IP warning flag.
  - `sync` boolean — Optional sync hint. CometAPI returns final results immediately without setting this field.

## Response `200`

Image generation result.

- object
  - `result` object[], required
    - `urls` string[], required
    - `seed` integer, required
    - `uuid` string, required

---

[API](https://skmtc.net/cometapi/apis/create-api-key.md) · [All operations](https://skmtc.net/cometapi/apis/create-api-key/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cometapi/create-api-key/versions/0863102dbf34/schema)
