Fibo Edit
Integreiddio
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/cy/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": {}
}
Galwch y model Fibo Edit (bria/fibo-edit/edit) drwy Doitong API. Dogfennaeth ar gyfer asiantau: https://doitong.com/cy/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
{}
Os yw statws yr ymateb yn "queued" neu "running", holwch GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 nes ei fod yn "succeeded"; mae'r ffeiliau yn outputs[].url. Mae POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit gyda'r un corff yn dychwelyd yr union bris cyn y rhediad.
Y cais hwn: $0.04 40 o gredydau API Ei redeg ar y dudalen hon
Eich allwedd API newydd. Dim ond nawr y caiff ei ddangos ac mae eisoes yn y cod ac ym maes allwedd API isod. Cadwch ef yn gyfrinachol: peidiwch byth â’i roi mewn cod sy’n rhedeg mewn porwr.
Mae eich canlyniad cyntaf yn mynd yma
Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.
Adeiladu cais
Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.
/run/bria/fibo-edit/edit?wait=20
dyfynbris → $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
}
}
}
Rhedeg y cais hwn
Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API
Ynglŷn â Fibo Edit
Yn golygu delwedd gyda rheolaeth fanwl. Mae'r mewnbynnau'n cynnwys `image_url`, `mask_url` dewisol, naill ai `instruction` neu `vgl` parod. Fel arall, rhowch `original_vgl` a `new_vgl` i olygu yn ôl eu gwahaniaeth. Mae `steps_num` yn amrywio o 20 i 50 (rhagosodiad 30), gyda `guidance_scale`, `negative_prompt` a `seed` ar gael hefyd.
Paramedrau
Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd
image_urldewisol
image
mask_urldewisol
mask
instructiondewisol
vgldewisol
vgl.short_descriptiondewisol
vgl.objectsdewisol
vgl.objects[].descriptiondewisol
vgl.objects[].locationdewisol
vgl.objects[].relationshipgofynnol
vgl.objects[].relative_sizedewisol
vgl.objects[].shape_and_colordewisol
vgl.objects[].texturedewisol
vgl.objects[].appearance_detailsdewisol
vgl.objects[].number_of_objectsdewisol
vgl.objects[].posedewisol
vgl.objects[].expressiondewisol
vgl.objects[].clothingdewisol
vgl.objects[].actiondewisol
vgl.objects[].genderdewisol
vgl.objects[].skin_tone_and_texturedewisol
vgl.objects[].orientationdewisol
vgl.background_settingdewisol
vgl.lightingdewisol
vgl.lighting.conditionsdewisol
vgl.lighting.directiondewisol
vgl.lighting.shadowsdewisol
vgl.aestheticsdewisol
vgl.aesthetics.compositiondewisol
vgl.aesthetics.color_schemedewisol
vgl.aesthetics.mood_atmospheredewisol
vgl.aesthetics.preference_scoredewisol
vgl.aesthetics.aesthetic_scoredewisol
vgl.photographic_characteristicsdewisol
vgl.photographic_characteristics.depth_of_fielddewisol
vgl.photographic_characteristics.focusdewisol
vgl.photographic_characteristics.camera_angledewisol
vgl.photographic_characteristics.lens_focal_lengthdewisol
vgl.style_mediumdewisol
vgl.text_renderdewisol
vgl.contextdewisol
vgl.artistic_styledewisol
vgl.edit_instructiondewisol
original_vgldewisol
original_vgl.short_descriptiondewisol
original_vgl.objectsdewisol
original_vgl.objects[].descriptiondewisol
original_vgl.objects[].locationdewisol
original_vgl.objects[].relationshipgofynnol
original_vgl.objects[].relative_sizedewisol
original_vgl.objects[].shape_and_colordewisol
original_vgl.objects[].texturedewisol
original_vgl.objects[].appearance_detailsdewisol
original_vgl.objects[].number_of_objectsdewisol
original_vgl.objects[].posedewisol
original_vgl.objects[].expressiondewisol
original_vgl.objects[].clothingdewisol
original_vgl.objects[].actiondewisol
original_vgl.objects[].genderdewisol
original_vgl.objects[].skin_tone_and_texturedewisol
original_vgl.objects[].orientationdewisol
original_vgl.background_settingdewisol
original_vgl.lightingdewisol
original_vgl.lighting.conditionsdewisol
original_vgl.lighting.directiondewisol
original_vgl.lighting.shadowsdewisol
original_vgl.aestheticsdewisol
original_vgl.aesthetics.compositiondewisol
original_vgl.aesthetics.color_schemedewisol
original_vgl.aesthetics.mood_atmospheredewisol
original_vgl.aesthetics.preference_scoredewisol
original_vgl.aesthetics.aesthetic_scoredewisol
original_vgl.photographic_characteristicsdewisol
original_vgl.photographic_characteristics.depth_of_fielddewisol
original_vgl.photographic_characteristics.focusdewisol
original_vgl.photographic_characteristics.camera_angledewisol
original_vgl.photographic_characteristics.lens_focal_lengthdewisol
original_vgl.style_mediumdewisol
original_vgl.text_renderdewisol
original_vgl.contextdewisol
original_vgl.artistic_styledewisol
original_vgl.edit_instructiondewisol
new_vgldewisol
new_vgl.short_descriptiondewisol
new_vgl.objectsdewisol
new_vgl.objects[].descriptiondewisol
new_vgl.objects[].locationdewisol
new_vgl.objects[].relationshipgofynnol
new_vgl.objects[].relative_sizedewisol
new_vgl.objects[].shape_and_colordewisol
new_vgl.objects[].texturedewisol
new_vgl.objects[].appearance_detailsdewisol
new_vgl.objects[].number_of_objectsdewisol
new_vgl.objects[].posedewisol
new_vgl.objects[].expressiondewisol
new_vgl.objects[].clothingdewisol
new_vgl.objects[].actiondewisol
new_vgl.objects[].genderdewisol
new_vgl.objects[].skin_tone_and_texturedewisol
new_vgl.objects[].orientationdewisol
new_vgl.background_settingdewisol
new_vgl.lightingdewisol
new_vgl.lighting.conditionsdewisol
new_vgl.lighting.directiondewisol
new_vgl.lighting.shadowsdewisol
new_vgl.aestheticsdewisol
new_vgl.aesthetics.compositiondewisol
new_vgl.aesthetics.color_schemedewisol
new_vgl.aesthetics.mood_atmospheredewisol
new_vgl.aesthetics.preference_scoredewisol
new_vgl.aesthetics.aesthetic_scoredewisol
new_vgl.photographic_characteristicsdewisol
new_vgl.photographic_characteristics.depth_of_fielddewisol
new_vgl.photographic_characteristics.focusdewisol
new_vgl.photographic_characteristics.camera_angledewisol
new_vgl.photographic_characteristics.lens_focal_lengthdewisol
new_vgl.style_mediumdewisol
new_vgl.text_renderdewisol
new_vgl.contextdewisol
new_vgl.artistic_styledewisol
new_vgl.edit_instructiondewisol
seeddewisol
steps_numdewisol
negative_promptdewisol
guidance_scaledewisol
Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau
Allbwn
{
"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"
}
}
Meysydd yr allbwn
- image
- object {url, content_type, file_name, file_size, width, height}Delwedd a gynhyrchir gan y model.
- images
- array of object {url, content_type, file_name, file_size, width, height}Delweddau a gynhyrchir.
- vgl
- objectDogfen VGL a ddefnyddir i gynhyrchu'r ddelwedd.
- structured_instruction
- objectEnw arall anghymeradwy ar gyfer yr un ddogfen; defnyddiwch `vgl` yn lle hynny.
Amrywiadau Fibo Edit eraill
Mwy o fodelau: Golygu Delweddau
Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/bria/fibo-edit/edit.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt






