Fibo Edit
整合
模型 id
bria/fibo-edit/edit
# 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-edit/edit?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
# 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"
const API = "https://api.doitong.com/v1";
const headers = {
"Authorization": "Bearer " + process.env.DOITONG_API_KEY,
"Content-Type": "application/json",
};
// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/bria/fibo-edit/edit?wait=20", {
method: "POST",
headers,
body: JSON.stringify({}),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);
// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
import os
import requests
API = "https://api.doitong.com/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}
payload = {}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bria/fibo-edit/edit", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])
# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
# 1. Connect once (Claude Code; Cursor, VS Code, Claude Desktop: https://doitong.com/zh-TW/developers/docs/mcp)
claude mcp add --transport http doitong-models https://api.doitong.com/v1/mcp \
--header "Authorization: Bearer $DOITONG_API_KEY"
# 2. Your agent calls the "run" tool with:
{
"model_id": "bria/fibo-edit/edit",
"input": {}
}
透過 Doitong API 呼叫 Fibo Edit 模型(bria/fibo-edit/edit)。代理程式文件:https://doitong.com/zh-TW/developers/models/bria/fibo-edit/edit.md
POST https://api.doitong.com/v1/run/bria/fibo-edit/edit?wait=20
Authorization: Bearer $DOITONG_API_KEY
Content-Type: application/json
{}
如果回應狀態為 "queued" 或 "running",請輪詢 GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20,直到狀態變為 "succeeded";檔案位於 outputs[].url。使用相同主體傳送 POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit,可在執行前取得確切價格。
此請求: $0.04 40 API 點數 在此頁面執行
您的新 API 金鑰。 僅會在此時顯示,且已填入下方的程式碼與 API 金鑰欄位。請妥善保密:切勿將其放入在瀏覽器中執行的程式碼。
建立請求
控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。
POST
/run/bria/fibo-edit/edit?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-edit/edit?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
# 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"
const API = "https://api.doitong.com/v1";
const headers = {
"Authorization": "Bearer " + process.env.DOITONG_API_KEY,
"Content-Type": "application/json",
};
// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/bria/fibo-edit/edit?wait=20", {
method: "POST",
headers,
body: JSON.stringify({}),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);
// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
import os
import requests
API = "https://api.doitong.com/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}
payload = {}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bria/fibo-edit/edit", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])
# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run",
"arguments": {
"model_id": "bria/fibo-edit/edit",
"input": {},
"wait_seconds": 20
}
}
}
關於 Fibo Edit
以細緻控制編輯影像。輸入包含 `image_url`、選用的 `mask_url`,以及 `instruction` 或預先建立的 `vgl`。也可提供 `original_vgl` 和 `new_vgl`,依兩者差異進行編輯。`steps_num` 範圍為 20 至 50(預設 30),另提供 `guidance_scale`、`negative_prompt` 與 `seed`。
參數
請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱
名稱類型
預設值允許值
說明
image_url選填
image
類型url · image
以檔案或 URL 提供的參考圖像。
mask_url選填
mask
類型url · image
以圖像檔案或 URL 提供的可選遮罩。
instruction選填
類型string | null
描述圖像編輯的指示。
vgl選填
類型object
`instruction` 的替代項目:作為編輯基礎且原樣使用的預先準備 VGL 文件,可略過文件建立。這兩個輸入互斥。
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.aesthetics.preference_score選填
類型string | null
正在生成之圖像的偏好評分。
vgl.aesthetics.aesthetic_score選填
類型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選填
類型any[]
預設值[]
要包含在圖像中的文字項目清單。
vgl.context選填
類型string | null
生成圖像的情境。
vgl.artistic_style選填
類型string | null
生成圖像的藝術風格。
vgl.edit_instruction選填
類型string | null
描述如何編輯圖像的指示。
original_vgl選填
類型object
作為 `new_vgl` 比較基準的目前影像 VGL;同時提供兩者時,其差異會決定編輯內容。
original_vgl.short_description選填
類型string | null
預期輸出圖像的簡短描述。
original_vgl.objects選填
類型object[]
預設值[]
以清單指定生成圖像的內容,記錄每個物件的屬性及其與其他圖示物件的關係。
original_vgl.objects[].description選填
類型string | null
預期輸出物件的描述。
original_vgl.objects[].location選填
類型string | null
物件在圖像中的位置。
original_vgl.objects[].relationship必填
類型string
物件與圖像中其他物件的關係。
original_vgl.objects[].relative_size選填
類型string | null
物件相對於圖像的大小。
original_vgl.objects[].shape_and_color選填
類型string | null
物件的形狀與色彩。
original_vgl.objects[].texture選填
類型string | null
物件的材質。
original_vgl.objects[].appearance_details選填
類型string | null
描述物件外觀的詳細資訊。
original_vgl.objects[].number_of_objects選填
類型integer | null
圖像中的物件數量。
original_vgl.objects[].pose選填
類型string | null
圖示物件的姿勢。
original_vgl.objects[].expression選填
類型string | null
圖示物件呈現的表情。
original_vgl.objects[].clothing選填
類型string | null
圖示物件穿著的服裝。
original_vgl.objects[].action選填
類型string | null
圖示物件執行的動作。
original_vgl.objects[].gender選填
類型string | null
圖示物件的性別。
original_vgl.objects[].skin_tone_and_texture選填
類型string | null
圖示物件的皮膚質感與色調。
original_vgl.objects[].orientation選填
類型string | null
圖示物件的方向。
original_vgl.background_setting選填
類型string | null
生成圖像的背景設定。
original_vgl.lighting選填
類型object
生成圖像的光線。
original_vgl.lighting.conditions選填
類型string | null
生成圖像的光線條件。
original_vgl.lighting.direction選填
類型string | null
生成圖像的光線方向。
original_vgl.lighting.shadows選填
類型string | null
生成圖像中要呈現的陰影。
original_vgl.aesthetics選填
類型object
生成圖像的美學特質。
original_vgl.aesthetics.composition選填
類型string | null
生成圖像的構圖。
original_vgl.aesthetics.color_scheme選填
類型string | null
生成圖像的色彩配置。
original_vgl.aesthetics.mood_atmosphere選填
類型string | null
生成圖像的情緒與氛圍。
original_vgl.aesthetics.preference_score選填
類型string | null
正在生成之圖像的偏好評分。
original_vgl.aesthetics.aesthetic_score選填
類型string | null
正在生成之圖像的美學評分。
original_vgl.photographic_characteristics選填
類型object
生成圖像的攝影特性。
original_vgl.photographic_characteristics.depth_of_field選填
類型string | null
生成圖像的景深。
original_vgl.photographic_characteristics.focus選填
類型string | null
生成圖像的焦點。
original_vgl.photographic_characteristics.camera_angle選填
類型string | null
生成圖像的相機角度。
original_vgl.photographic_characteristics.lens_focal_length選填
類型string | null
生成圖像的鏡頭設定,以焦距表示。
original_vgl.style_medium選填
類型string | null
生成圖像的藝術媒材。
original_vgl.text_render選填
類型any[]
預設值[]
要包含在圖像中的文字項目清單。
original_vgl.context選填
類型string | null
生成圖像的情境。
original_vgl.artistic_style選填
類型string | null
生成圖像的藝術風格。
original_vgl.edit_instruction選填
類型string | null
描述如何編輯圖像的指示。
new_vgl選填
類型object
僅可搭配 `original_vgl` 使用的目標狀態 VGL,用於描述結果圖像應呈現的樣子。
new_vgl.short_description選填
類型string | null
預期輸出圖像的簡短描述。
new_vgl.objects選填
類型object[]
預設值[]
以清單指定生成圖像的內容,記錄每個物件的屬性及其與其他圖示物件的關係。
new_vgl.objects[].description選填
類型string | null
預期輸出物件的描述。
new_vgl.objects[].location選填
類型string | null
物件在圖像中的位置。
new_vgl.objects[].relationship必填
類型string
物件與圖像中其他物件的關係。
new_vgl.objects[].relative_size選填
類型string | null
物件相對於圖像的大小。
new_vgl.objects[].shape_and_color選填
類型string | null
物件的形狀與色彩。
new_vgl.objects[].texture選填
類型string | null
物件的材質。
new_vgl.objects[].appearance_details選填
類型string | null
描述物件外觀的詳細資訊。
new_vgl.objects[].number_of_objects選填
類型integer | null
圖像中的物件數量。
new_vgl.objects[].pose選填
類型string | null
圖示物件的姿勢。
new_vgl.objects[].expression選填
類型string | null
圖示物件呈現的表情。
new_vgl.objects[].clothing選填
類型string | null
圖示物件穿著的服裝。
new_vgl.objects[].action選填
類型string | null
圖示物件執行的動作。
new_vgl.objects[].gender選填
類型string | null
圖示物件的性別。
new_vgl.objects[].skin_tone_and_texture選填
類型string | null
圖示物件的皮膚質感與色調。
new_vgl.objects[].orientation選填
類型string | null
圖示物件的方向。
new_vgl.background_setting選填
類型string | null
生成圖像的背景設定。
new_vgl.lighting選填
類型object
生成圖像的光線。
new_vgl.lighting.conditions選填
類型string | null
生成圖像的光線條件。
new_vgl.lighting.direction選填
類型string | null
生成圖像的光線方向。
new_vgl.lighting.shadows選填
類型string | null
生成圖像中要呈現的陰影。
new_vgl.aesthetics選填
類型object
生成圖像的美學特質。
new_vgl.aesthetics.composition選填
類型string | null
生成圖像的構圖。
new_vgl.aesthetics.color_scheme選填
類型string | null
生成圖像的色彩配置。
new_vgl.aesthetics.mood_atmosphere選填
類型string | null
生成圖像的情緒與氛圍。
new_vgl.aesthetics.preference_score選填
類型string | null
正在生成之圖像的偏好評分。
new_vgl.aesthetics.aesthetic_score選填
類型string | null
正在生成之圖像的美學評分。
new_vgl.photographic_characteristics選填
類型object
生成圖像的攝影特性。
new_vgl.photographic_characteristics.depth_of_field選填
類型string | null
生成圖像的景深。
new_vgl.photographic_characteristics.focus選填
類型string | null
生成圖像的焦點。
new_vgl.photographic_characteristics.camera_angle選填
類型string | null
生成圖像的相機角度。
new_vgl.photographic_characteristics.lens_focal_length選填
類型string | null
生成圖像的鏡頭設定,以焦距表示。
new_vgl.style_medium選填
類型string | null
生成圖像的藝術媒材。
new_vgl.text_render選填
類型any[]
預設值[]
要包含在圖像中的文字項目清單。
new_vgl.context選填
類型string | null
生成圖像的情境。
new_vgl.artistic_style選填
類型string | null
生成圖像的藝術風格。
new_vgl.edit_instruction選填
類型string | null
描述如何編輯圖像的指示。
seed選填
類型integer
預設值5555
控制隨機性以產生可重現結果的種子。
steps_num選填
類型integer
預設值30
20 – 50
推論步驟總數。
negative_prompt選填
類型string
預設值
生成圖像時使用的負面提示詞。
guidance_scale選填
類型number | integer
預設值5
文字引導的強度。
必填
標準名稱,也可使用
檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案
輸出
GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"object": "request",
"model": "bria/fibo-edit/edit",
"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": {},
"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": {},
"structured_instruction": {}
},
"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}生成產生的圖像。
- vgl
- object用於生成圖像的 VGL 文件。
- structured_instruction
- object相同文件的已棄用別名;請改用 `vgl`。
其他 Fibo Edit 變體
更多模型:圖像編輯
給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/bria/fibo-edit/edit.md. 所有模型與指南: https://doitong.com/developers/llms.txt






