Fibo Edit
Whakauru
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/mi/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": {}
}
Karangahia te tauira Fibo Edit (bria/fibo-edit/edit) mā te Doitong API. Tuhinga mō ngā āpiha: https://doitong.com/mi/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
{}
Mēnā ko "queued" "running" rānei te tūnga whakautu, uiuitia GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 kia "succeeded"; kei outputs[].url ngā kōnae. Ko POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit me taua tinana anō ka whakahoki i te utu tika i mua i te whakahaere.
Tēnei tono: $ 0.04 40 whiwhinga API Whakahaerehia ki tēnei whārangi
Tō kī API hou. Ka whakaaturia ināianei anake, ā, kua whakaurua kētia ki te waehere me te āpure kī API kei raro. Me huna: kaua rawa e waiho ki te waehere e whakahaere ana i roto i te pūtirotiro.
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.
/run/bria/fibo-edit/edit?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-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
}
}
}
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 Edit
Ka whakatika i tētahi whakaahua me te whakahaere hōhonu. Kei ngā tāuru `image_url`, tētahi `mask_url` kōwhiringa, me `instruction`, he `vgl` kua oti rānei. Hei kē atu, tukuna `original_vgl` me `new_vgl` hei whakatika mā tō rāua rerekētanga. Ko te awhe o `steps_num` mai i te 20 ki te 50 (taunoa 30), ā, kei te wātea hoki `guidance_scale`, `negative_prompt` me `seed`.
Ngā tawhā
Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua
image_urlkōwhiringa
image
mask_urlkōwhiringa
mask
instructionkōwhiringa
vglkōwhiringa
vgl.short_descriptionkōwhiringa
vgl.objectskōwhiringa
vgl.objects[].descriptionkōwhiringa
vgl.objects[].locationkōwhiringa
vgl.objects[].relationshipe hiahiatia ana
vgl.objects[].relative_sizekōwhiringa
vgl.objects[].shape_and_colorkōwhiringa
vgl.objects[].texturekōwhiringa
vgl.objects[].appearance_detailskōwhiringa
vgl.objects[].number_of_objectskōwhiringa
vgl.objects[].posekōwhiringa
vgl.objects[].expressionkōwhiringa
vgl.objects[].clothingkōwhiringa
vgl.objects[].actionkōwhiringa
vgl.objects[].genderkōwhiringa
vgl.objects[].skin_tone_and_texturekōwhiringa
vgl.objects[].orientationkōwhiringa
vgl.background_settingkōwhiringa
vgl.lightingkōwhiringa
vgl.lighting.conditionskōwhiringa
vgl.lighting.directionkōwhiringa
vgl.lighting.shadowskōwhiringa
vgl.aestheticskōwhiringa
vgl.aesthetics.compositionkōwhiringa
vgl.aesthetics.color_schemekōwhiringa
vgl.aesthetics.mood_atmospherekōwhiringa
vgl.aesthetics.preference_scorekōwhiringa
vgl.aesthetics.aesthetic_scorekōwhiringa
vgl.photographic_characteristicskōwhiringa
vgl.photographic_characteristics.depth_of_fieldkōwhiringa
vgl.photographic_characteristics.focuskōwhiringa
vgl.photographic_characteristics.camera_anglekōwhiringa
vgl.photographic_characteristics.lens_focal_lengthkōwhiringa
vgl.style_mediumkōwhiringa
vgl.text_renderkōwhiringa
vgl.contextkōwhiringa
vgl.artistic_stylekōwhiringa
vgl.edit_instructionkōwhiringa
original_vglkōwhiringa
original_vgl.short_descriptionkōwhiringa
original_vgl.objectskōwhiringa
original_vgl.objects[].descriptionkōwhiringa
original_vgl.objects[].locationkōwhiringa
original_vgl.objects[].relationshipe hiahiatia ana
original_vgl.objects[].relative_sizekōwhiringa
original_vgl.objects[].shape_and_colorkōwhiringa
original_vgl.objects[].texturekōwhiringa
original_vgl.objects[].appearance_detailskōwhiringa
original_vgl.objects[].number_of_objectskōwhiringa
original_vgl.objects[].posekōwhiringa
original_vgl.objects[].expressionkōwhiringa
original_vgl.objects[].clothingkōwhiringa
original_vgl.objects[].actionkōwhiringa
original_vgl.objects[].genderkōwhiringa
original_vgl.objects[].skin_tone_and_texturekōwhiringa
original_vgl.objects[].orientationkōwhiringa
original_vgl.background_settingkōwhiringa
original_vgl.lightingkōwhiringa
original_vgl.lighting.conditionskōwhiringa
original_vgl.lighting.directionkōwhiringa
original_vgl.lighting.shadowskōwhiringa
original_vgl.aestheticskōwhiringa
original_vgl.aesthetics.compositionkōwhiringa
original_vgl.aesthetics.color_schemekōwhiringa
original_vgl.aesthetics.mood_atmospherekōwhiringa
original_vgl.aesthetics.preference_scorekōwhiringa
original_vgl.aesthetics.aesthetic_scorekōwhiringa
original_vgl.photographic_characteristicskōwhiringa
original_vgl.photographic_characteristics.depth_of_fieldkōwhiringa
original_vgl.photographic_characteristics.focuskōwhiringa
original_vgl.photographic_characteristics.camera_anglekōwhiringa
original_vgl.photographic_characteristics.lens_focal_lengthkōwhiringa
original_vgl.style_mediumkōwhiringa
original_vgl.text_renderkōwhiringa
original_vgl.contextkōwhiringa
original_vgl.artistic_stylekōwhiringa
original_vgl.edit_instructionkōwhiringa
new_vglkōwhiringa
new_vgl.short_descriptionkōwhiringa
new_vgl.objectskōwhiringa
new_vgl.objects[].descriptionkōwhiringa
new_vgl.objects[].locationkōwhiringa
new_vgl.objects[].relationshipe hiahiatia ana
new_vgl.objects[].relative_sizekōwhiringa
new_vgl.objects[].shape_and_colorkōwhiringa
new_vgl.objects[].texturekōwhiringa
new_vgl.objects[].appearance_detailskōwhiringa
new_vgl.objects[].number_of_objectskōwhiringa
new_vgl.objects[].posekōwhiringa
new_vgl.objects[].expressionkōwhiringa
new_vgl.objects[].clothingkōwhiringa
new_vgl.objects[].actionkōwhiringa
new_vgl.objects[].genderkōwhiringa
new_vgl.objects[].skin_tone_and_texturekōwhiringa
new_vgl.objects[].orientationkōwhiringa
new_vgl.background_settingkōwhiringa
new_vgl.lightingkōwhiringa
new_vgl.lighting.conditionskōwhiringa
new_vgl.lighting.directionkōwhiringa
new_vgl.lighting.shadowskōwhiringa
new_vgl.aestheticskōwhiringa
new_vgl.aesthetics.compositionkōwhiringa
new_vgl.aesthetics.color_schemekōwhiringa
new_vgl.aesthetics.mood_atmospherekōwhiringa
new_vgl.aesthetics.preference_scorekōwhiringa
new_vgl.aesthetics.aesthetic_scorekōwhiringa
new_vgl.photographic_characteristicskōwhiringa
new_vgl.photographic_characteristics.depth_of_fieldkōwhiringa
new_vgl.photographic_characteristics.focuskōwhiringa
new_vgl.photographic_characteristics.camera_anglekōwhiringa
new_vgl.photographic_characteristics.lens_focal_lengthkōwhiringa
new_vgl.style_mediumkōwhiringa
new_vgl.text_renderkōwhiringa
new_vgl.contextkōwhiringa
new_vgl.artistic_stylekōwhiringa
new_vgl.edit_instructionkōwhiringa
seedkōwhiringa
steps_numkōwhiringa
negative_promptkōwhiringa
guidance_scalekōwhiringa
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
{
"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"
}
}
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}Ngā atahanga i whakaputaina.
- vgl
- objectTuhinga VGL i whakamahia hei whakaputa i te atahanga.
- structured_instruction
- objectIngoa kē kua whakakorehia mō taua tuhinga; whakamahia `vgl` kē.
Ētahi atu rerekētanga Fibo Edit
Ētahi atu tauira: Whakatika Atahanga
Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/bria/fibo-edit/edit.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt






