Fibo Edit
Tengja
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/is/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": {}
}
Kallaðu á líkanið Fibo Edit (bria/fibo-edit/edit) í gegnum Doitong API. Skjöl fyrir gervigreindarforrit: https://doitong.com/is/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
{}
Ef svarstaðan er "queued" eða "running" skaltu kalla reglulega á GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 þar til hún er "succeeded"; skrárnar eru í outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit með sama meginmáli skilar nákvæmu verði áður en keyrt er.
Þessi beiðni: 0,04 $ 40 API-inneignir Keyra á þessari síðu
Nýi API-lykillinn þinn. Hún birtist aðeins núna og er þegar í kóðanum og í API-lyklareitnum hér fyrir neðan. Haltu henni leyndri: settu hana aldrei í kóða sem keyrir í vafra.
Fyrsta niðurstaðan þín birtist hér
Búðu til beiðni hér að neðan og keyrðu hana með API-lyklinum þínum. Úttök eru afrituð í geymsluna okkar og geymd að eilífu eða 7 dagar án kostnaðar.
Búa til beiðni
Stýringar eru búnar til út frá líkanaskemanu. Kóðinn og verðið uppfærast þegar þú breytir þeim.
/run/bria/fibo-edit/edit?wait=20
verðtilboð → 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
}
}
}
Keyra þessa beiðni
Lykillinn þinn er áfram í þessum vafra: hann er aðeins sendur til Doitong API og vistaður í localStorage aðeins ef þú hakar við Muna. Fá API-lykil
Um Fibo Edit
Vinnur úr mynd með nákvæmri stjórn. Inntök eru `image_url`, valfrjáls `mask_url` og annaðhvort `instruction` eða tilbúið `vgl`. Einnig má gefa upp `original_vgl` og `new_vgl` til að breyta út frá mismun þeirra. `steps_num` er á bilinu 20 til 50 (sjálfgefið 30), auk þess sem `guidance_scale`, `negative_prompt` og `seed` eru í boði.
Færibreytur
Sendu annaðhvort samræmda heitið eða upprunalega heitið, ekki bæði. Samræmd heiti
image_urlvalfrjálst
image
mask_urlvalfrjálst
mask
instructionvalfrjálst
vglvalfrjálst
vgl.short_descriptionvalfrjálst
vgl.objectsvalfrjálst
vgl.objects[].descriptionvalfrjálst
vgl.objects[].locationvalfrjálst
vgl.objects[].relationshipáskilið
vgl.objects[].relative_sizevalfrjálst
vgl.objects[].shape_and_colorvalfrjálst
vgl.objects[].texturevalfrjálst
vgl.objects[].appearance_detailsvalfrjálst
vgl.objects[].number_of_objectsvalfrjálst
vgl.objects[].posevalfrjálst
vgl.objects[].expressionvalfrjálst
vgl.objects[].clothingvalfrjálst
vgl.objects[].actionvalfrjálst
vgl.objects[].gendervalfrjálst
vgl.objects[].skin_tone_and_texturevalfrjálst
vgl.objects[].orientationvalfrjálst
vgl.background_settingvalfrjálst
vgl.lightingvalfrjálst
vgl.lighting.conditionsvalfrjálst
vgl.lighting.directionvalfrjálst
vgl.lighting.shadowsvalfrjálst
vgl.aestheticsvalfrjálst
vgl.aesthetics.compositionvalfrjálst
vgl.aesthetics.color_schemevalfrjálst
vgl.aesthetics.mood_atmospherevalfrjálst
vgl.aesthetics.preference_scorevalfrjálst
vgl.aesthetics.aesthetic_scorevalfrjálst
vgl.photographic_characteristicsvalfrjálst
vgl.photographic_characteristics.depth_of_fieldvalfrjálst
vgl.photographic_characteristics.focusvalfrjálst
vgl.photographic_characteristics.camera_anglevalfrjálst
vgl.photographic_characteristics.lens_focal_lengthvalfrjálst
vgl.style_mediumvalfrjálst
vgl.text_rendervalfrjálst
vgl.contextvalfrjálst
vgl.artistic_stylevalfrjálst
vgl.edit_instructionvalfrjálst
original_vglvalfrjálst
original_vgl.short_descriptionvalfrjálst
original_vgl.objectsvalfrjálst
original_vgl.objects[].descriptionvalfrjálst
original_vgl.objects[].locationvalfrjálst
original_vgl.objects[].relationshipáskilið
original_vgl.objects[].relative_sizevalfrjálst
original_vgl.objects[].shape_and_colorvalfrjálst
original_vgl.objects[].texturevalfrjálst
original_vgl.objects[].appearance_detailsvalfrjálst
original_vgl.objects[].number_of_objectsvalfrjálst
original_vgl.objects[].posevalfrjálst
original_vgl.objects[].expressionvalfrjálst
original_vgl.objects[].clothingvalfrjálst
original_vgl.objects[].actionvalfrjálst
original_vgl.objects[].gendervalfrjálst
original_vgl.objects[].skin_tone_and_texturevalfrjálst
original_vgl.objects[].orientationvalfrjálst
original_vgl.background_settingvalfrjálst
original_vgl.lightingvalfrjálst
original_vgl.lighting.conditionsvalfrjálst
original_vgl.lighting.directionvalfrjálst
original_vgl.lighting.shadowsvalfrjálst
original_vgl.aestheticsvalfrjálst
original_vgl.aesthetics.compositionvalfrjálst
original_vgl.aesthetics.color_schemevalfrjálst
original_vgl.aesthetics.mood_atmospherevalfrjálst
original_vgl.aesthetics.preference_scorevalfrjálst
original_vgl.aesthetics.aesthetic_scorevalfrjálst
original_vgl.photographic_characteristicsvalfrjálst
original_vgl.photographic_characteristics.depth_of_fieldvalfrjálst
original_vgl.photographic_characteristics.focusvalfrjálst
original_vgl.photographic_characteristics.camera_anglevalfrjálst
original_vgl.photographic_characteristics.lens_focal_lengthvalfrjálst
original_vgl.style_mediumvalfrjálst
original_vgl.text_rendervalfrjálst
original_vgl.contextvalfrjálst
original_vgl.artistic_stylevalfrjálst
original_vgl.edit_instructionvalfrjálst
new_vglvalfrjálst
new_vgl.short_descriptionvalfrjálst
new_vgl.objectsvalfrjálst
new_vgl.objects[].descriptionvalfrjálst
new_vgl.objects[].locationvalfrjálst
new_vgl.objects[].relationshipáskilið
new_vgl.objects[].relative_sizevalfrjálst
new_vgl.objects[].shape_and_colorvalfrjálst
new_vgl.objects[].texturevalfrjálst
new_vgl.objects[].appearance_detailsvalfrjálst
new_vgl.objects[].number_of_objectsvalfrjálst
new_vgl.objects[].posevalfrjálst
new_vgl.objects[].expressionvalfrjálst
new_vgl.objects[].clothingvalfrjálst
new_vgl.objects[].actionvalfrjálst
new_vgl.objects[].gendervalfrjálst
new_vgl.objects[].skin_tone_and_texturevalfrjálst
new_vgl.objects[].orientationvalfrjálst
new_vgl.background_settingvalfrjálst
new_vgl.lightingvalfrjálst
new_vgl.lighting.conditionsvalfrjálst
new_vgl.lighting.directionvalfrjálst
new_vgl.lighting.shadowsvalfrjálst
new_vgl.aestheticsvalfrjálst
new_vgl.aesthetics.compositionvalfrjálst
new_vgl.aesthetics.color_schemevalfrjálst
new_vgl.aesthetics.mood_atmospherevalfrjálst
new_vgl.aesthetics.preference_scorevalfrjálst
new_vgl.aesthetics.aesthetic_scorevalfrjálst
new_vgl.photographic_characteristicsvalfrjálst
new_vgl.photographic_characteristics.depth_of_fieldvalfrjálst
new_vgl.photographic_characteristics.focusvalfrjálst
new_vgl.photographic_characteristics.camera_anglevalfrjálst
new_vgl.photographic_characteristics.lens_focal_lengthvalfrjálst
new_vgl.style_mediumvalfrjálst
new_vgl.text_rendervalfrjálst
new_vgl.contextvalfrjálst
new_vgl.artistic_stylevalfrjálst
new_vgl.edit_instructionvalfrjálst
seedvalfrjálst
steps_numvalfrjálst
negative_promptvalfrjálst
guidance_scalevalfrjálst
Skrárfæribreytur taka við opinberri https://-vefslóð, data:-URI allt að 10 MB eða file_url fyrir upphleðslu. Skrár
Úttak
{
"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"
}
}
Reitir úttaks
- image
- object {url, content_type, file_name, file_size, width, height}Mynd sem líkanið býr til.
- images
- array of object {url, content_type, file_name, file_size, width, height}Myndir sem verða til við efnisgerð.
- vgl
- objectVGL-skjal notað til að búa til myndina.
- structured_instruction
- objectÚrelt samheiti fyrir sama skjal; notaðu `vgl` í staðinn.
Önnur Fibo Edit-tilbrigði
Fleiri líkön: Myndvinnsla
Fyrir gervigreindarþjóna: þessi síða á Markdown-sniði er á https://doitong.com/is/developers/models/bria/fibo-edit/edit.md. Öll líkön og leiðbeiningar: https://doitong.com/developers/llms.txt






