跳至內容

Fibo 2.0 Generate

整合

模型 id 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"

此請求: $0.04 40 API 點數 在此頁面執行

取得 API 金鑰
Bria AI 文字轉圖像 #text-to-image#image-generation#complex-prompts#structured-prompts

文字轉影像模型,可將提示擴展為結構化 VGL,支援風格預設與參考影像模式

Bria AI · 圖像

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

指定對 'vgl' 進行變更的生成請求。未提供時,會將自由格式描述擴展為 VGL 文件,並由回應納入。

預設 1:1

約一百萬像素的圖像比例。可用比例: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。

進階 image · style · seed · vgl
image_url
拖放檔案,或

inspire 模式的參考圖像;不可與 `vgl` 結合。提供 `prompt` 時,VGL 會從參考圖像取得視覺線索,建立提示詞場景的新描繪,而非重現參考圖像。未提供 `prompt` 時,VGL 會描述參考圖像本身,產生相近的變體。

style

僅可搭配 'prompt' 使用的生成圖像樣式。不支援將樣式與 'image_url'、'vgl' 或 'negative_prompt' 結合。

預設 5555

控制隨機性以產生可重現結果的種子,範圍為 0 至 2147483647。

包含結構化 JSON 場景描述的 VGL (Visual Generation Language) 文件;接受較早請求回傳的文件。未提供 `prompt` 時會原樣轉譯;提供 `prompt` 時,VGL 會依提示詞精修文件後再轉譯。不可與 `image_url` 或 `style` 結合。

POST /run/bria/fibo-2/generate?wait=20 報價 → $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"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Fibo 2.0 Generate

從自由格式的 `prompt` 建立影像,並將其擴展為會回傳的 VGL 文件。也可直接傳入 `vgl`、透過提示加以細化,或提供 `image_url` 作為視覺參考。`style` 提供 Kodak Film、Hard Flash、Hazy Dreamy 和 Rough Realism。`aspect_ratio` 有 16 個值,並支援 `seed`。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
prompt選填
類型string | null
指定對 'vgl' 進行變更的生成請求。未提供時,會將自由格式描述擴展為 VGL 文件,並由回應納入。
style選填
類型enum
Kodak FilmHard FlashHazy DreamyRough Realism
僅可搭配 'prompt' 使用的生成圖像樣式。不支援將樣式與 'image_url'、'vgl' 或 'negative_prompt' 結合。
image_url選填 image
類型url · image
inspire 模式的參考圖像;不可與 `vgl` 結合。提供 `prompt` 時,VGL 會從參考圖像取得視覺線索,建立提示詞場景的新描繪,而非重現參考圖像。未提供 `prompt` 時,VGL 會描述參考圖像本身,產生相近的變體。
vgl選填
類型object
包含結構化 JSON 場景描述的 VGL (Visual Generation Language) 文件;接受較早請求回傳的文件。未提供 `prompt` 時會原樣轉譯;提供 `prompt` 時,VGL 會依提示詞精修文件後再轉譯。不可與 `image_url` 或 `style` 結合。
vgl.short_description選填
類型string | null
預期輸出圖像的簡短描述。
vgl.objects選填
類型object[]
預設值[]
以清單指定生成圖像的內容,記錄每個物件的屬性及其與其他圖示物件的關係。
vgl.objects[].description選填
類型string | null
預期輸出物件的描述。
vgl.objects[].location選填
類型string | null
物件在圖像中的位置。
vgl.objects[].relationship必填
類型string
物件與圖像中其他物件的關係。
vgl.objects[].relative_size選填
類型string | null
物件相對於圖像的大小。
vgl.objects[].shape_and_color選填
類型string | null
物件的形狀與色彩。
vgl.objects[].texture選填
類型string | null
物件的材質。
vgl.objects[].appearance_details選填
類型string | null
描述物件外觀的詳細資訊。
vgl.objects[].number_of_objects選填
類型integer | null
圖像中的物件數量。
vgl.objects[].pose選填
類型string | null
圖示物件的姿勢。
vgl.objects[].expression選填
類型string | null
圖示物件呈現的表情。
vgl.objects[].clothing選填
類型string | null
圖示物件穿著的服裝。
vgl.objects[].action選填
類型string | null
圖示物件執行的動作。
vgl.objects[].gender選填
類型string | null
圖示物件的性別。
vgl.objects[].skin_tone_and_texture選填
類型string | null
圖示物件的皮膚質感與色調。
vgl.objects[].orientation選填
類型string | null
圖示物件的方向。
vgl.background_setting選填
類型string | null
生成圖像的背景設定。
vgl.lighting選填
類型object
生成圖像的光線。
vgl.lighting.conditions選填
類型string | null
生成圖像的光線條件。
vgl.lighting.direction選填
類型string | null
生成圖像的光線方向。
vgl.lighting.shadows選填
類型string | null
生成圖像中要呈現的陰影。
vgl.aesthetics選填
類型object
生成圖像的美學特質。
vgl.aesthetics.composition選填
類型string | null
生成圖像的構圖。
vgl.aesthetics.color_scheme選填
類型string | null
生成圖像的色彩配置。
vgl.aesthetics.mood_atmosphere選填
類型string | null
生成圖像的情緒與氛圍。
vgl.photographic_characteristics選填
類型object
生成圖像的攝影特性。
vgl.photographic_characteristics.depth_of_field選填
類型string | null
生成圖像的景深。
vgl.photographic_characteristics.focus選填
類型string | null
生成圖像的焦點。
vgl.photographic_characteristics.camera_angle選填
類型string | null
生成圖像的相機角度。
vgl.photographic_characteristics.lens_focal_length選填
類型string | null
生成圖像的鏡頭設定,以焦距表示。
vgl.style_medium選填
類型string | null
生成圖像的藝術媒材。
vgl.text_render選填
類型object[]
預設值[]
要包含在圖像中的文字項目清單。
vgl.text_render[].text必填
類型string
要繪製的文字;也會以圖像形式視覺呈現給 fibo-2,以協助精確重現提供的文字內容。
vgl.text_render[].location選填
類型string | null
文字在圖像中的位置。
vgl.text_render[].size選填
類型string | null
文字在圖像中的大小。
vgl.text_render[].color選填
類型string | null
文字使用的色彩。
vgl.text_render[].font選填
類型string | null
文字的字型樣式。
vgl.text_render[].appearance_details選填
類型string | null
文字外觀的其他重要詳細資訊。
vgl.context選填
類型string | null
生成圖像的情境。
vgl.artistic_style選填
類型string | null
生成圖像的藝術風格。
seed選填
類型integer
預設值5555
0 – 2,147,483,647
控制隨機性以產生可重現結果的種子,範圍為 0 至 2147483647。
aspect_ratio選填
類型enum
預設值1:1
1:11:21:31:41:52:12:33:13:23:44:14:34:55:15:49:16
另有 5 個9:2110:1616:916:1021:9
約一百萬像素的圖像比例。可用比例: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。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

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"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
image
object {url, content_type, file_name, file_size, width, height}模型產生的圖像。
images
array of object {url, content_type, file_name, file_size, width, height}符合其他 FIBO 應用程式回傳格式的圖像清單;唯一項目就是同一張圖像。
vgl
object用於產生圖像的 VGL。

更多模型:文字轉圖像

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/bria/fibo-2/generate.md. 所有模型與指南: https://doitong.com/developers/llms.txt