Peke ki ngā ihirangi

Bria Text-to-Image Base

Whakauru

id tauira bria/text-to-image/base
# 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/base?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"

Tēnei tono: $ 0.16 160 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Bria AI · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Tohutohu kuputuhi hei ārahi i te whakaputanga atahanga.

aspect_ratio taunoa 1:1

Te ōwehenga āhua putanga mō te whakaputa kāore he arataki; mā te tikanga arataki e tango te ōwehenga mai i tana atahanga arataki, ka waihotia tēnei tautuhinga.

num_images taunoa 4

Te tatau atahanga i tonoa, ka huri ki te 1 ina whakamahia he tikanga arataki.

Arā atu negative_prompt · medium · num_inference_steps · guidance_scale · seed · prompt_enhancement · guidance
taunoa

Tohutohu kuputuhi tōraro mō te whakaputanga atahanga.

medium

Te reo hei whakamahi i ngā atahanga whakaputaina. Waiho kia kore e whakaritea, tautapa rānei ki null mō te kōwhiringa reo aunoa.

taunoa 30

He tatau kōwhiringa o ngā tāruaruatanga tauira hei whakamahine i te atahanga putanga.

taunoa 5

Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).

Kākano mō ngā atahanga ka taea te whakahoki anō: mā te tohutohu me te kākano ōrite ka puta he atahanga ōrite ina kāore te putanga tauira i whakarerekēhia.

taunoa []

Ngā atahanga arataki whakaputanga, ka tukuna me ngā tikanga ka taea te whakakotahi i roto i te inference kotahi, me te mōrahi 4 tikanga.

POST /run/bria/text-to-image/base?wait=20 utu → $ 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/base?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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Bria Text-to-Image Base

Ka waihanga whakaahua mai i `prompt` me ngā kōwhiringa `aspect_ratio` mai i te 1:1 ki te 16:9, me te 1 ki te 4 whakaahua mō ia tono (taunoa 4). Kei roto ngā mana `negative_prompt`, `guidance_scale` mai i te 0 ki te 20, `num_inference_steps` mai i te 20 ki te 50, me `prompt_enhancement` kōwhiringa. Ko `medium` he photography, he art rānei, ā, ka whakaae `guidance` ki te 4 whakaahua ārahi kua whakakotahitia.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
Tohutohu kuputuhi hei ārahi i te whakaputanga atahanga.
negative_promptkōwhiringa
Momostring
Taunoa
Tohutohu kuputuhi tōraro mō te whakaputanga atahanga.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa4
1 – 4
Te tatau atahanga i tonoa, ka huri ki te 1 ina whakamahia he tikanga arataki.
aspect_ratiokōwhiringa
Momoenum
Taunoa1:1
1:12:33:23:44:34:55:49:1616:9
Te ōwehenga āhua putanga mō te whakaputa kāore he arataki; mā te tikanga arataki e tango te ōwehenga mai i tana atahanga arataki, ka waihotia tēnei tautuhinga.
seedkōwhiringa
Momointeger | null
0 – 2,147,483,647
Kākano mō ngā atahanga ka taea te whakahoki anō: mā te tohutohu me te kākano ōrite ka puta he atahanga ōrite ina kāore te putanga tauira i whakarerekēhia.
num_inference_stepskōwhiringa
Momointeger
Taunoa30
20 – 50
He tatau kōwhiringa o ngā tāruaruatanga tauira hei whakamahine i te atahanga putanga.
guidance_scalekōwhiringa
Momonumber
Taunoa5
0 – 20
Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).
prompt_enhancementkōwhiringa
Momoboolean
Taunoafalse
Te whakakā whakarei tohutohu: mā true e whakatairanga ngā atahanga kanorau, auaha ake, mā te whakawhānui i te tohutohu kua tukuna ki ētahi rerekētanga me ngā whakaahuatanga whai kiko ake.
mediumkōwhiringa
Momoenum
photographyart
Te reo hei whakamahi i ngā atahanga whakaputaina. Waiho kia kore e whakaritea, tautapa rānei ki null mō te kōwhiringa reo aunoa.
guidancekōwhiringa
Momoobject[]
Taunoa[]
Ngā atahanga arataki whakaputanga, ka tukuna me ngā tikanga ka taea te whakakotahi i roto i te inference kotahi, me te mōrahi 4 tikanga.
guidance[].image_urle hiahiatia ana
Momourl · image
Atahanga arataki kua whakawaeheretia hei base64 mō te tikanga kua tohua e guidance_method_1; me whai atahanga ina kōwhiria guidance_method_1. Ngā hōputu tautoko: jpeg, jpg, png, webp; ko te rahinga mōrahi 12 MB. Ina whakakotahitia ngā tikanga arataki, me ōrite te ōwehenga āhua o ia atahanga arataki, ā, mā taua ōwehenga e whakatau te ōwehenga āhua putanga.
guidance[].methodkōwhiringa
Momoenum
controlnet_cannycontrolnet_depthcontrolnet_recoloringcontrolnet_color_grid
He momo arataki kōwhiringa mō te whakaputanga. Ka taea e inference kotahi te whakakotahi ki te 4 tikanga arataki.
guidance[].scalekōwhiringa
Momonumber
Taunoa1
0 – 1
Te kaha o te pānga arataki.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/text-to-image/base",
  "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
images
array of object {url, content_type, file_name, file_size, width, height}Ngā atahanga i whakaputaina e te tauira.
seed
integerKākano ka whakamahia i te whakaputanga.

Ētahi atu tauira: Kuputuhi ki te Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/bria/text-to-image/base.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt