Fibo Edit
Integrera
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/sv/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": {}
}
Anropa modellen Fibo Edit (bria/fibo-edit/edit) via Doitong API. Dokumentation för agenter: https://doitong.com/sv/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
{}
Om svarsstatusen är "queued" eller "running" ska du polla GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 tills den är "succeeded"; filerna finns i outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit med samma body returnerar det exakta priset före körningen.
Den här begäran: 0,04 $ 40 API-krediter Kör den på den här sidan
Din nya API-nyckel. Den visas bara nu och finns redan i koden och i API-nyckelfältet nedan. Håll den hemlig: lägg aldrig in den i kod som körs i en webbläsare.
Ditt första resultat visas här
Skapa en begäran nedan och kör den med din API-nyckel. Utdata kopieras till vår lagring och sparas för alltid eller 7 dagar kostnadsfritt.
Skapa en begäran
Kontrollerna genereras från modellschemat. Koden och priset uppdateras när du ändrar dem.
/run/bria/fibo-edit/edit?wait=20
pris → 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
}
}
}
Kör den här begäran
Din nyckel stannar i den här webbläsaren: den skickas endast till Doitong API och sparas endast i localStorage om du markerar Kom ihåg. Hämta en API-nyckel
Om Fibo Edit
Redigerar en bild med fin kontroll. Indata omfattar `image_url`, en valfri `mask_url` och antingen en `instruction` eller en färdig `vgl`. Alternativt kan du ange `original_vgl` och `new_vgl` för att redigera utifrån skillnaden mellan dem. `steps_num` sträcker sig från 20 till 50 (standard 30), och `guidance_scale`, `negative_prompt` och `seed` är också tillgängliga.
Parametrar
Skicka antingen det kanoniska namnet eller det inbyggda namnet, inte båda. Kanoniska namn
image_urlvalfritt
image
mask_urlvalfritt
mask
instructionvalfritt
vglvalfritt
vgl.short_descriptionvalfritt
vgl.objectsvalfritt
vgl.objects[].descriptionvalfritt
vgl.objects[].locationvalfritt
vgl.objects[].relationshipobligatoriskt
vgl.objects[].relative_sizevalfritt
vgl.objects[].shape_and_colorvalfritt
vgl.objects[].texturevalfritt
vgl.objects[].appearance_detailsvalfritt
vgl.objects[].number_of_objectsvalfritt
vgl.objects[].posevalfritt
vgl.objects[].expressionvalfritt
vgl.objects[].clothingvalfritt
vgl.objects[].actionvalfritt
vgl.objects[].gendervalfritt
vgl.objects[].skin_tone_and_texturevalfritt
vgl.objects[].orientationvalfritt
vgl.background_settingvalfritt
vgl.lightingvalfritt
vgl.lighting.conditionsvalfritt
vgl.lighting.directionvalfritt
vgl.lighting.shadowsvalfritt
vgl.aestheticsvalfritt
vgl.aesthetics.compositionvalfritt
vgl.aesthetics.color_schemevalfritt
vgl.aesthetics.mood_atmospherevalfritt
vgl.aesthetics.preference_scorevalfritt
vgl.aesthetics.aesthetic_scorevalfritt
vgl.photographic_characteristicsvalfritt
vgl.photographic_characteristics.depth_of_fieldvalfritt
vgl.photographic_characteristics.focusvalfritt
vgl.photographic_characteristics.camera_anglevalfritt
vgl.photographic_characteristics.lens_focal_lengthvalfritt
vgl.style_mediumvalfritt
vgl.text_rendervalfritt
vgl.contextvalfritt
vgl.artistic_stylevalfritt
vgl.edit_instructionvalfritt
original_vglvalfritt
original_vgl.short_descriptionvalfritt
original_vgl.objectsvalfritt
original_vgl.objects[].descriptionvalfritt
original_vgl.objects[].locationvalfritt
original_vgl.objects[].relationshipobligatoriskt
original_vgl.objects[].relative_sizevalfritt
original_vgl.objects[].shape_and_colorvalfritt
original_vgl.objects[].texturevalfritt
original_vgl.objects[].appearance_detailsvalfritt
original_vgl.objects[].number_of_objectsvalfritt
original_vgl.objects[].posevalfritt
original_vgl.objects[].expressionvalfritt
original_vgl.objects[].clothingvalfritt
original_vgl.objects[].actionvalfritt
original_vgl.objects[].gendervalfritt
original_vgl.objects[].skin_tone_and_texturevalfritt
original_vgl.objects[].orientationvalfritt
original_vgl.background_settingvalfritt
original_vgl.lightingvalfritt
original_vgl.lighting.conditionsvalfritt
original_vgl.lighting.directionvalfritt
original_vgl.lighting.shadowsvalfritt
original_vgl.aestheticsvalfritt
original_vgl.aesthetics.compositionvalfritt
original_vgl.aesthetics.color_schemevalfritt
original_vgl.aesthetics.mood_atmospherevalfritt
original_vgl.aesthetics.preference_scorevalfritt
original_vgl.aesthetics.aesthetic_scorevalfritt
original_vgl.photographic_characteristicsvalfritt
original_vgl.photographic_characteristics.depth_of_fieldvalfritt
original_vgl.photographic_characteristics.focusvalfritt
original_vgl.photographic_characteristics.camera_anglevalfritt
original_vgl.photographic_characteristics.lens_focal_lengthvalfritt
original_vgl.style_mediumvalfritt
original_vgl.text_rendervalfritt
original_vgl.contextvalfritt
original_vgl.artistic_stylevalfritt
original_vgl.edit_instructionvalfritt
new_vglvalfritt
new_vgl.short_descriptionvalfritt
new_vgl.objectsvalfritt
new_vgl.objects[].descriptionvalfritt
new_vgl.objects[].locationvalfritt
new_vgl.objects[].relationshipobligatoriskt
new_vgl.objects[].relative_sizevalfritt
new_vgl.objects[].shape_and_colorvalfritt
new_vgl.objects[].texturevalfritt
new_vgl.objects[].appearance_detailsvalfritt
new_vgl.objects[].number_of_objectsvalfritt
new_vgl.objects[].posevalfritt
new_vgl.objects[].expressionvalfritt
new_vgl.objects[].clothingvalfritt
new_vgl.objects[].actionvalfritt
new_vgl.objects[].gendervalfritt
new_vgl.objects[].skin_tone_and_texturevalfritt
new_vgl.objects[].orientationvalfritt
new_vgl.background_settingvalfritt
new_vgl.lightingvalfritt
new_vgl.lighting.conditionsvalfritt
new_vgl.lighting.directionvalfritt
new_vgl.lighting.shadowsvalfritt
new_vgl.aestheticsvalfritt
new_vgl.aesthetics.compositionvalfritt
new_vgl.aesthetics.color_schemevalfritt
new_vgl.aesthetics.mood_atmospherevalfritt
new_vgl.aesthetics.preference_scorevalfritt
new_vgl.aesthetics.aesthetic_scorevalfritt
new_vgl.photographic_characteristicsvalfritt
new_vgl.photographic_characteristics.depth_of_fieldvalfritt
new_vgl.photographic_characteristics.focusvalfritt
new_vgl.photographic_characteristics.camera_anglevalfritt
new_vgl.photographic_characteristics.lens_focal_lengthvalfritt
new_vgl.style_mediumvalfritt
new_vgl.text_rendervalfritt
new_vgl.contextvalfritt
new_vgl.artistic_stylevalfritt
new_vgl.edit_instructionvalfritt
seedvalfritt
steps_numvalfritt
negative_promptvalfritt
guidance_scalevalfritt
Filparametrar tar emot en offentlig https://-URL, en data:-URI på upp till 10 MB eller file_url från en uppladdning. Filer
Resultat
{
"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"
}
}
Resultatets fält
- image
- object {url, content_type, file_name, file_size, width, height}Bild som modellen har skapat.
- images
- array of object {url, content_type, file_name, file_size, width, height}Bilder som skapats genom generering.
- vgl
- objectVGL-dokument som används för att skapa bilden.
- structured_instruction
- objectFöråldrat alias för samma dokument; använd `vgl` i stället.
Andra Fibo Edit-varianter
Fler modeller: Bildredigering
För AI-agenter: den här sidan som Markdown finns på https://doitong.com/sv/developers/models/bria/fibo-edit/edit.md. Alla modeller och guider: https://doitong.com/developers/llms.txt






