Peke ki ngā ihirangi

Fibo 2.0 Generate

Whakauru

id tauira bria/fibo-2/generate
# 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/fibo-2/generate?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.04 40 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Bria AI Kuputuhi ki te Atahanga #text-to-image#image-generation#complex-prompts#structured-prompts

He tauira kuputuhi-ki-whakaahua ka whakawhānui i ngā tohutohu ki te VGL kua hanganga, me ngā tautuhinga kāhua me te aratau whakaahua tohutoro

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.

Tono whakaputanga e tohu ana i ngā panonitanga ki 'vgl' ina tukuna taua tuhinga. Ki te kore, ka whakawhānuitia te whakaahuatanga ā-wātea hei tuhinga VGL, ka whakaurua e te whakautu.

taunoa 1:1

Ngā ōwehenga atahanga tata ki te kotahi mekapika. Ngā ōwehenga e wātea ana: 1:1, 1:2, 1:3, 1:4, 1:5, 2:1, 2:3, 3:1, 3:2, 3:4, 4:1, 4:3, 4:5, 5:1, 5:4, 9:16, 9:21, 10:16, 16:9, 16:10, 21:9.

Arā atu image · style · seed · vgl
image_url
Whakataka he kōnae,

Atahanga tohutoro mō te aratau inspire; kāore e taea te whakakotahi ki `vgl`. Ina tukuna a `prompt`, ka tango a VGL i ngā tohu ā-kanohi mai i te tohutoro hei waihanga whakaaturanga hou o te tirohanga kua tohutohungia, kaua hei tārua i te tohutoro. Ki te kore `prompt`, ka whakaahua a VGL i te tohutoro ake, ka puta he rerekētanga tata.

style

Kāhua atahanga whakaputaina e wātea ana me 'prompt' anake. Kāore e tautokona te whakakotahi kāhua ki 'image_url', 'vgl', 'negative_prompt' rānei.

taunoa 5555

Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua, mai i te 0 ki te 2147483647.

Tuhinga VGL (Visual Generation Language) kei roto he whakaahuatanga tirohanga JSON hanganga; ka whakaaetia ngā tuhinga i whakahokia e ngā tono o mua. Ki te kore `prompt`, ka tāngia kāore he panoni; me `prompt`, ka whakapai a VGL i te tuhinga kia hāngai ki te tohutohu i mua i te tānga. Kāore e taea te whakakotahi ki `image_url` me `style`.

POST /run/bria/fibo-2/generate?wait=20 utu → $ 0.04
# 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/fibo-2/generate?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ō Fibo 2.0 Generate

Ka waihanga whakaahua mai i tētahi `prompt` ā-wātea ka whakawhānuitia ki tētahi tuhinga VGL, ka whakahokia hoki taua tuhinga. Ka taea hoki te tuku tika i `vgl`, te whakamahine rānei mā te tohutohu, te tuku rānei i `image_url` hei tohutoro ā-kanohi. Ko ngā kāhua kei `style` ko Kodak Film, Hard Flash, Hazy Dreamy me Rough Realism. E 16 ngā uara kei `aspect_ratio`, ā, ka tautokona `seed`.

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
promptkōwhiringa
Momostring | null
Tono whakaputanga e tohu ana i ngā panonitanga ki 'vgl' ina tukuna taua tuhinga. Ki te kore, ka whakawhānuitia te whakaahuatanga ā-wātea hei tuhinga VGL, ka whakaurua e te whakautu.
stylekōwhiringa
Momoenum
Kodak FilmHard FlashHazy DreamyRough Realism
Kāhua atahanga whakaputaina e wātea ana me 'prompt' anake. Kāore e tautokona te whakakotahi kāhua ki 'image_url', 'vgl', 'negative_prompt' rānei.
image_urlkōwhiringa image
Momourl · image
Atahanga tohutoro mō te aratau inspire; kāore e taea te whakakotahi ki `vgl`. Ina tukuna a `prompt`, ka tango a VGL i ngā tohu ā-kanohi mai i te tohutoro hei waihanga whakaaturanga hou o te tirohanga kua tohutohungia, kaua hei tārua i te tohutoro. Ki te kore `prompt`, ka whakaahua a VGL i te tohutoro ake, ka puta he rerekētanga tata.
vglkōwhiringa
Momoobject
Tuhinga VGL (Visual Generation Language) kei roto he whakaahuatanga tirohanga JSON hanganga; ka whakaaetia ngā tuhinga i whakahokia e ngā tono o mua. Ki te kore `prompt`, ka tāngia kāore he panoni; me `prompt`, ka whakapai a VGL i te tuhinga kia hāngai ki te tohutohu i mua i te tānga. Kāore e taea te whakakotahi ki `image_url` me `style`.
vgl.short_descriptionkōwhiringa
Momostring | null
Whakamārama poto o te atahanga putanga e whāia ana.
vgl.objectskōwhiringa
Momoobject[]
Taunoa[]
Tauwhāitihia ngā ihirangi o te atahanga whakaputaina hei rārangi, me te tuhi i ngā āhuatanga o ia ahanoa me ō rātou hononga ki ērā atu ahanoa kua whakaaturia.
vgl.objects[].descriptionkōwhiringa
Momostring | null
Whakamārama o te ahanoa putanga e whāia ana.
vgl.objects[].locationkōwhiringa
Momostring | null
Te tūnga o te ahanoa i roto i te atahanga.
vgl.objects[].relationshipe hiahiatia ana
Momostring
Te hononga o te ahanoa ki ērā atu ahanoa o te atahanga.
vgl.objects[].relative_sizekōwhiringa
Momostring | null
Te rahinga o te ahanoa e pā ana ki te atahanga.
vgl.objects[].shape_and_colorkōwhiringa
Momostring | null
Te āhua me te tae o te ahanoa.
vgl.objects[].texturekōwhiringa
Momostring | null
Te kakano o te ahanoa.
vgl.objects[].appearance_detailskōwhiringa
Momostring | null
Ngā taipitopito e whakaahua ana i te āhua o te ahanoa.
vgl.objects[].number_of_objectskōwhiringa
Momointeger | null
Te tatau o ngā ahanoa i roto i te atahanga.
vgl.objects[].posekōwhiringa
Momostring | null
Te tū āhua o te ahanoa kua whakaaturia.
vgl.objects[].expressionkōwhiringa
Momostring | null
Te āhua kanohi o te ahanoa kua whakaaturia.
vgl.objects[].clothingkōwhiringa
Momostring | null
Ngā kākahu e mau ana te ahanoa kua whakaaturia.
vgl.objects[].actionkōwhiringa
Momostring | null
Te mahi a te ahanoa kua whakaaturia.
vgl.objects[].genderkōwhiringa
Momostring | null
Te ira tangata o te ahanoa kua whakaaturia.
vgl.objects[].skin_tone_and_texturekōwhiringa
Momostring | null
Te kakano me te tae kiri o te ahanoa kua whakaaturia.
vgl.objects[].orientationkōwhiringa
Momostring | null
Te aronga o te ahanoa kua whakaaturia.
vgl.background_settingkōwhiringa
Momostring | null
Te papamuri o te atahanga whakaputaina.
vgl.lightingkōwhiringa
Momoobject
Te rama mō te atahanga whakaputaina.
vgl.lighting.conditionskōwhiringa
Momostring | null
Ngā tikanga rama mō te atahanga whakaputaina.
vgl.lighting.directionkōwhiringa
Momostring | null
Te ahunga rama mō te atahanga whakaputaina.
vgl.lighting.shadowskōwhiringa
Momostring | null
Ngā atarangi hei whakaatu ki te atahanga whakaputaina.
vgl.aestheticskōwhiringa
Momoobject
Ngā kounga rerehua mō te atahanga whakaputaina.
vgl.aesthetics.compositionkōwhiringa
Momostring | null
Te whakatakotoranga o te atahanga whakaputaina.
vgl.aesthetics.color_schemekōwhiringa
Momostring | null
Te huinga tae mō te atahanga whakaputaina.
vgl.aesthetics.mood_atmospherekōwhiringa
Momostring | null
Te wairua me te āhua o te taiao mō te atahanga whakaputaina.
vgl.photographic_characteristicskōwhiringa
Momoobject
Ngā āhuatanga whakaahua mō te atahanga whakaputaina.
vgl.photographic_characteristics.depth_of_fieldkōwhiringa
Momostring | null
Te hōhonu o te wāhi arotahi mō te atahanga whakaputaina.
vgl.photographic_characteristics.focuskōwhiringa
Momostring | null
Te arotahi mō te atahanga whakaputaina.
vgl.photographic_characteristics.camera_anglekōwhiringa
Momostring | null
Te koki kāmera mō te atahanga whakaputaina.
vgl.photographic_characteristics.lens_focal_lengthkōwhiringa
Momostring | null
Tautuhinga arotahi mō te atahanga whakaputaina, ka whakaaturia hei roa arotahi.
vgl.style_mediumkōwhiringa
Momostring | null
Te momo toi mō te atahanga whakaputaina.
vgl.text_renderkōwhiringa
Momoobject[]
Taunoa[]
Rārangi tāurunga kuputuhi hei whakauru ki te atahanga.
vgl.text_render[].texte hiahiatia ana
Momostring
Kuputuhi hei tā, ka whakaaturia ā-kanohi hoki ki fibo-2 hei atahanga hei āwhina ki te tārua tika i ngā kupu i tukuna.
vgl.text_render[].locationkōwhiringa
Momostring | null
Te tūnga o te kuputuhi i roto i te atahanga.
vgl.text_render[].sizekōwhiringa
Momostring | null
Te rahinga o te kuputuhi i roto i te atahanga.
vgl.text_render[].colorkōwhiringa
Momostring | null
Te tae mō te kuputuhi.
vgl.text_render[].fontkōwhiringa
Momostring | null
Te kāhua momotuhi mō te kuputuhi.
vgl.text_render[].appearance_detailskōwhiringa
Momostring | null
Ētahi atu taipitopito nui mō te āhua o te kuputuhi.
vgl.contextkōwhiringa
Momostring | null
Horopaki mō te atahanga whakaputaina.
vgl.artistic_stylekōwhiringa
Momostring | null
Te kāhua toi mō te atahanga whakaputaina.
seedkōwhiringa
Momointeger
Taunoa5555
0 – 2,147,483,647
Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua, mai i te 0 ki te 2147483647.
aspect_ratiokōwhiringa
Momoenum
Taunoa1:1
1:11:21:31:41:52:12:33:13:23:44:14:34:55:15:49:16
+5 anō9:2110:1616:916:1021:9
Ngā ōwehenga atahanga tata ki te kotahi mekapika. Ngā ōwehenga e wātea ana: 1:1, 1:2, 1:3, 1:4, 1:5, 2:1, 2:3, 3:1, 3:2, 3:4, 4:1, 4:3, 4:5, 5:1, 5:4, 9:16, 9:21, 10:16, 16:9, 16:10, 21:9.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo-2/generate",
  "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": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "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
    },
    "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
      }
    ],
    "vgl": {}
  },
  "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
image
object {url, content_type, file_name, file_size, width, height}Atahanga i whakaputaina e te tauira.
images
array of object {url, content_type, file_name, file_size, width, height}Rārangi atahanga e ōrite ana ki te hōputu i whakahokia e ētahi atu taupānga FIBO; ko te tāurunga kotahi ko taua atahanga anō.
vgl
objectVGL i whakamahia hei whakaputa i te atahanga.

Ē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/fibo-2/generate.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt