Skip to content

Bria Text-to-Image HD

Integrate

Model id bria/text-to-image/hd
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/text-to-image/hd?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.16 160 API credits Run it on this page

Get API key
Bria AI · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required

Text prompt directing image generation.

aspect_ratio default 1:1

Output aspect ratio for generation without guidance; a guidance method instead takes the ratio from its guidance image and ignores this setting.

num_images default 4

Requested image count, overridden to 1 whenever any guidance method is used.

Advanced negative_prompt · medium · num_inference_steps · guidance_scale · seed · prompt_enhancement · guidance
default

Negative text prompt for image generation.

medium

Medium to use in generated images. Leave unset or assign null for automatic medium selection.

default 30

Optional count of model iterations used to refine the output image.

default 5

Prompt-adherence strength for image selection, expressed as CFG (Classifier Free Guidance).

Seed for reproducible images: an identical prompt and seed produce an identical image when the model version is unchanged.

default []

Generation-guidance images, supplied with methods that may be combined in one inference, subject to a maximum of 4 methods.

POST /run/bria/text-to-image/hd?wait=20 quote → $0.16
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/text-to-image/hd?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Bria Text-to-Image HD

Text-to-image model aimed at HD results, using a longer refinement schedule than the fast variant: `num_inference_steps` ranges from 20 to 50 and defaults to 30. It produces 1 to 4 images per request and accepts `negative_prompt`, `seed`, `guidance_scale` from 0 to 20, nine aspect ratios and a `medium` of photography or art. Up to 4 guidance methods can be combined.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
Text prompt directing image generation.
negative_promptoptional
Typestring
Default
Negative text prompt for image generation.
num_imagesoptional num_outputs
Typeinteger
Default4
1 – 4
Requested image count, overridden to 1 whenever any guidance method is used.
aspect_ratiooptional
Typeenum
Default1:1
1:12:33:23:44:34:55:49:1616:9
Output aspect ratio for generation without guidance; a guidance method instead takes the ratio from its guidance image and ignores this setting.
seedoptional
Typeinteger | null
0 – 2,147,483,647
Seed for reproducible images: an identical prompt and seed produce an identical image when the model version is unchanged.
num_inference_stepsoptional
Typeinteger
Default30
20 – 50
Optional count of model iterations used to refine the output image.
guidance_scaleoptional
Typenumber
Default5
0 – 20
Prompt-adherence strength for image selection, expressed as CFG (Classifier Free Guidance).
prompt_enhancementoptional
Typeboolean
Defaultfalse
Prompt enhancement switch: true promotes more diverse, creative images by expanding the supplied prompt into additional variations with richer descriptions.
mediumoptional
Typeenum
photographyart
Medium to use in generated images. Leave unset or assign null for automatic medium selection.
guidanceoptional
Typeobject[]
Default[]
Generation-guidance images, supplied with methods that may be combined in one inference, subject to a maximum of 4 methods.
guidance[].image_urlrequired
Typeurl · image
Base64-encoded guidance image for the method specified by guidance_method_1; an image is required whenever guidance_method_1 is selected. Supported formats: jpeg, jpg, png, webp; maximum size is 12 MB. When combining guidance methods, every guidance image must share an aspect ratio, which also determines the output aspect ratio.
guidance[].methodoptional
Typeenum
controlnet_cannycontrolnet_depthcontrolnet_recoloringcontrolnet_color_grid
Optional guidance type for generation. A single inference can combine up to 4 guidance methods.
guidance[].scaleoptional
Typenumber
Default1
0 – 1
Strength of the guidance effect.
required Canonical name, also accepted

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/text-to-image/hd",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 160,
    "usd": "0.16",
    "charged": 160,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size, width, height}Images produced by the model.
seed
integerSeed applied during generation.

More models: Text to Image

For AI agents: this page as Markdown is at https://doitong.com/developers/models/bria/text-to-image/hd.md. All models and guides: https://doitong.com/developers/llms.txt