Fibo Edit
Integrace
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/cs/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": {}
}
Volejte model Fibo Edit (bria/fibo-edit/edit) prostřednictvím Doitong API. Dokumentace pro agenty: https://doitong.com/cs/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
{}
Pokud je stav odpovědi "queued" nebo "running", dotazujte GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20, dokud nebude "succeeded"; soubory jsou v outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit se stejným tělem vrátí přesnou cenu před spuštěním.
Tento požadavek: 0,04 $ 40 kreditů API Spustit na této stránce
Váš nový API klíč. Zobrazuje se pouze nyní a už je vložen do kódu a do pole API klíč níže. Uchovávejte ho v tajnosti: nikdy ho nevkládejte do kódu, který se spouští v prohlížeči.
Zde se zobrazí váš první výsledek
Níže sestavte požadavek a spusťte ho pomocí svého API klíče. Výstupy se kopírují do našeho úložiště a uchovávají se navždy nebo 7 dne zdarma.
Sestavit požadavek
Ovládací prvky se generují ze schématu modelu. Kód a cena se aktualizují podle provedených změn.
/run/bria/fibo-edit/edit?wait=20
cena → 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
}
}
}
Spustit tento požadavek
Váš klíč zůstává v tomto prohlížeči: odesílá se pouze do Doitong API a uloží se do localStorage jen tehdy, když zaškrtnete možnost Zapamatovat. Získat klíč API
O modelu Fibo Edit
Upraví obrázek s přesným řízením. Vstupy zahrnují `image_url`, volitelný `mask_url` a buď `instruction`, nebo předem vytvořený `vgl`. Alternativně zadejte `original_vgl` a `new_vgl` a upravujte podle jejich rozdílu. `steps_num` je v rozsahu 20 až 50 (výchozí 30), k dispozici jsou také `guidance_scale`, `negative_prompt` a `seed`.
Parametry
Odešlete buď kanonický název, nebo nativní název, ne oba. Kanonické názvy
image_urlvolitelné
image
mask_urlvolitelné
mask
instructionvolitelné
vglvolitelné
vgl.short_descriptionvolitelné
vgl.objectsvolitelné
vgl.objects[].descriptionvolitelné
vgl.objects[].locationvolitelné
vgl.objects[].relationshippovinné
vgl.objects[].relative_sizevolitelné
vgl.objects[].shape_and_colorvolitelné
vgl.objects[].texturevolitelné
vgl.objects[].appearance_detailsvolitelné
vgl.objects[].number_of_objectsvolitelné
vgl.objects[].posevolitelné
vgl.objects[].expressionvolitelné
vgl.objects[].clothingvolitelné
vgl.objects[].actionvolitelné
vgl.objects[].gendervolitelné
vgl.objects[].skin_tone_and_texturevolitelné
vgl.objects[].orientationvolitelné
vgl.background_settingvolitelné
vgl.lightingvolitelné
vgl.lighting.conditionsvolitelné
vgl.lighting.directionvolitelné
vgl.lighting.shadowsvolitelné
vgl.aestheticsvolitelné
vgl.aesthetics.compositionvolitelné
vgl.aesthetics.color_schemevolitelné
vgl.aesthetics.mood_atmospherevolitelné
vgl.aesthetics.preference_scorevolitelné
vgl.aesthetics.aesthetic_scorevolitelné
vgl.photographic_characteristicsvolitelné
vgl.photographic_characteristics.depth_of_fieldvolitelné
vgl.photographic_characteristics.focusvolitelné
vgl.photographic_characteristics.camera_anglevolitelné
vgl.photographic_characteristics.lens_focal_lengthvolitelné
vgl.style_mediumvolitelné
vgl.text_rendervolitelné
vgl.contextvolitelné
vgl.artistic_stylevolitelné
vgl.edit_instructionvolitelné
original_vglvolitelné
original_vgl.short_descriptionvolitelné
original_vgl.objectsvolitelné
original_vgl.objects[].descriptionvolitelné
original_vgl.objects[].locationvolitelné
original_vgl.objects[].relationshippovinné
original_vgl.objects[].relative_sizevolitelné
original_vgl.objects[].shape_and_colorvolitelné
original_vgl.objects[].texturevolitelné
original_vgl.objects[].appearance_detailsvolitelné
original_vgl.objects[].number_of_objectsvolitelné
original_vgl.objects[].posevolitelné
original_vgl.objects[].expressionvolitelné
original_vgl.objects[].clothingvolitelné
original_vgl.objects[].actionvolitelné
original_vgl.objects[].gendervolitelné
original_vgl.objects[].skin_tone_and_texturevolitelné
original_vgl.objects[].orientationvolitelné
original_vgl.background_settingvolitelné
original_vgl.lightingvolitelné
original_vgl.lighting.conditionsvolitelné
original_vgl.lighting.directionvolitelné
original_vgl.lighting.shadowsvolitelné
original_vgl.aestheticsvolitelné
original_vgl.aesthetics.compositionvolitelné
original_vgl.aesthetics.color_schemevolitelné
original_vgl.aesthetics.mood_atmospherevolitelné
original_vgl.aesthetics.preference_scorevolitelné
original_vgl.aesthetics.aesthetic_scorevolitelné
original_vgl.photographic_characteristicsvolitelné
original_vgl.photographic_characteristics.depth_of_fieldvolitelné
original_vgl.photographic_characteristics.focusvolitelné
original_vgl.photographic_characteristics.camera_anglevolitelné
original_vgl.photographic_characteristics.lens_focal_lengthvolitelné
original_vgl.style_mediumvolitelné
original_vgl.text_rendervolitelné
original_vgl.contextvolitelné
original_vgl.artistic_stylevolitelné
original_vgl.edit_instructionvolitelné
new_vglvolitelné
new_vgl.short_descriptionvolitelné
new_vgl.objectsvolitelné
new_vgl.objects[].descriptionvolitelné
new_vgl.objects[].locationvolitelné
new_vgl.objects[].relationshippovinné
new_vgl.objects[].relative_sizevolitelné
new_vgl.objects[].shape_and_colorvolitelné
new_vgl.objects[].texturevolitelné
new_vgl.objects[].appearance_detailsvolitelné
new_vgl.objects[].number_of_objectsvolitelné
new_vgl.objects[].posevolitelné
new_vgl.objects[].expressionvolitelné
new_vgl.objects[].clothingvolitelné
new_vgl.objects[].actionvolitelné
new_vgl.objects[].gendervolitelné
new_vgl.objects[].skin_tone_and_texturevolitelné
new_vgl.objects[].orientationvolitelné
new_vgl.background_settingvolitelné
new_vgl.lightingvolitelné
new_vgl.lighting.conditionsvolitelné
new_vgl.lighting.directionvolitelné
new_vgl.lighting.shadowsvolitelné
new_vgl.aestheticsvolitelné
new_vgl.aesthetics.compositionvolitelné
new_vgl.aesthetics.color_schemevolitelné
new_vgl.aesthetics.mood_atmospherevolitelné
new_vgl.aesthetics.preference_scorevolitelné
new_vgl.aesthetics.aesthetic_scorevolitelné
new_vgl.photographic_characteristicsvolitelné
new_vgl.photographic_characteristics.depth_of_fieldvolitelné
new_vgl.photographic_characteristics.focusvolitelné
new_vgl.photographic_characteristics.camera_anglevolitelné
new_vgl.photographic_characteristics.lens_focal_lengthvolitelné
new_vgl.style_mediumvolitelné
new_vgl.text_rendervolitelné
new_vgl.contextvolitelné
new_vgl.artistic_stylevolitelné
new_vgl.edit_instructionvolitelné
seedvolitelné
steps_numvolitelné
negative_promptvolitelné
guidance_scalevolitelné
Parametry souborů přijímají veřejnou adresu https:// URL, data: URI do 10 MB nebo file_url nahraného souboru. Soubory
Výstup
{
"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"
}
}
Pole výstupu
- image
- object {url, content_type, file_name, file_size, width, height}Obrázek vytvořený modelem.
- images
- array of object {url, content_type, file_name, file_size, width, height}Obrázky vytvořené generováním.
- vgl
- objectDokument VGL použitý k vytvoření obrázku.
- structured_instruction
- objectZastaralý alias pro stejný dokument; použijte `vgl`.
Další varianty Fibo Edit
Další modely: Úprava obrázků
Pro AI agenty: tato stránka je ve formátu Markdown na adrese https://doitong.com/cs/developers/models/bria/fibo-edit/edit.md. Všechny modely a návody: https://doitong.com/developers/llms.txt






