Fibo Edit
Integriraj
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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
const API = "https://api.doitong.ru/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.ru/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/hr/developers/docs/mcp)
claude mcp add --transport http doitong-models https://api.doitong.ru/v1/mcp \
--header "Authorization: Bearer $DOITONG_API_KEY"
# 2. Your agent calls the "run" tool with:
{
"model_id": "bria/fibo-edit/edit",
"input": {}
}
Pozovite model Fibo Edit (bria/fibo-edit/edit) putem Doitong API-ja. Dokumentacija za agente: https://doitong.com/hr/developers/models/bria/fibo-edit/edit.md
POST https://api.doitong.ru/v1/run/bria/fibo-edit/edit?wait=20
Authorization: Bearer $DOITONG_API_KEY
Content-Type: application/json
{}
Ako je status odgovora "queued" ili "running", dohvaćajte GET https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20 dok ne bude "succeeded"; datoteke se nalaze u outputs[].url. POST https://api.doitong.ru/v1/quote/bria/fibo-edit/edit s istim tijelom vraća točnu cijenu prije pokretanja.
Ovaj zahtjev: 0,04 $ 40 API kredita · ≈ 4,22 ₽ Pokreni na ovoj stranici
Vaš novi API ključ. Prikazuje se samo sada i već je u kodu i u polju za API ključ u nastavku. Čuvajte ga kao tajnu: nikad ga nemojte stavljati u kod koji se izvršava u pregledniku.
Vaš prvi rezultat bit će ovdje
Izradite zahtjev u nastavku i pokrenite ga svojim API ključem. Izlazi se kopiraju u našu pohranu i čuvaju zauvijek ili 7 dana besplatno.
Izradi zahtjev
Kontrole se generiraju iz sheme modela. Kôd i cijena ažuriraju se dok ih mijenjate.
/run/bria/fibo-edit/edit?wait=20
cijena → 0,04 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
const API = "https://api.doitong.ru/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.ru/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
}
}
}
Pokreni ovaj zahtjev
Vaš ključ ostaje u ovom pregledniku: šalje se samo Doitong API-ju i sprema u localStorage samo ako označite Zapamti. Nabavite API ključ
O modelu Fibo Edit
Uređuje sliku uz preciznu kontrolu. Ulazi uključuju `image_url`, neobavezni `mask_url` te `instruction` ili unaprijed izrađeni `vgl`. Alternativno navedite `original_vgl` i `new_vgl` za uređivanje prema njihovoj razlici. `steps_num` je u rasponu od 20 do 50 (zadano 30), a dostupni su i `guidance_scale`, `negative_prompt` i `seed`.
Parametri
Pošaljite kanonski naziv ili izvorni naziv, ne oba. Kanonski nazivi
image_urlneobavezno
image
mask_urlneobavezno
mask
instructionneobavezno
vglneobavezno
vgl.short_descriptionneobavezno
vgl.objectsneobavezno
vgl.objects[].descriptionneobavezno
vgl.objects[].locationneobavezno
vgl.objects[].relationshipobavezno
vgl.objects[].relative_sizeneobavezno
vgl.objects[].shape_and_colorneobavezno
vgl.objects[].textureneobavezno
vgl.objects[].appearance_detailsneobavezno
vgl.objects[].number_of_objectsneobavezno
vgl.objects[].poseneobavezno
vgl.objects[].expressionneobavezno
vgl.objects[].clothingneobavezno
vgl.objects[].actionneobavezno
vgl.objects[].genderneobavezno
vgl.objects[].skin_tone_and_textureneobavezno
vgl.objects[].orientationneobavezno
vgl.background_settingneobavezno
vgl.lightingneobavezno
vgl.lighting.conditionsneobavezno
vgl.lighting.directionneobavezno
vgl.lighting.shadowsneobavezno
vgl.aestheticsneobavezno
vgl.aesthetics.compositionneobavezno
vgl.aesthetics.color_schemeneobavezno
vgl.aesthetics.mood_atmosphereneobavezno
vgl.aesthetics.preference_scoreneobavezno
vgl.aesthetics.aesthetic_scoreneobavezno
vgl.photographic_characteristicsneobavezno
vgl.photographic_characteristics.depth_of_fieldneobavezno
vgl.photographic_characteristics.focusneobavezno
vgl.photographic_characteristics.camera_angleneobavezno
vgl.photographic_characteristics.lens_focal_lengthneobavezno
vgl.style_mediumneobavezno
vgl.text_renderneobavezno
vgl.contextneobavezno
vgl.artistic_styleneobavezno
vgl.edit_instructionneobavezno
original_vglneobavezno
original_vgl.short_descriptionneobavezno
original_vgl.objectsneobavezno
original_vgl.objects[].descriptionneobavezno
original_vgl.objects[].locationneobavezno
original_vgl.objects[].relationshipobavezno
original_vgl.objects[].relative_sizeneobavezno
original_vgl.objects[].shape_and_colorneobavezno
original_vgl.objects[].textureneobavezno
original_vgl.objects[].appearance_detailsneobavezno
original_vgl.objects[].number_of_objectsneobavezno
original_vgl.objects[].poseneobavezno
original_vgl.objects[].expressionneobavezno
original_vgl.objects[].clothingneobavezno
original_vgl.objects[].actionneobavezno
original_vgl.objects[].genderneobavezno
original_vgl.objects[].skin_tone_and_textureneobavezno
original_vgl.objects[].orientationneobavezno
original_vgl.background_settingneobavezno
original_vgl.lightingneobavezno
original_vgl.lighting.conditionsneobavezno
original_vgl.lighting.directionneobavezno
original_vgl.lighting.shadowsneobavezno
original_vgl.aestheticsneobavezno
original_vgl.aesthetics.compositionneobavezno
original_vgl.aesthetics.color_schemeneobavezno
original_vgl.aesthetics.mood_atmosphereneobavezno
original_vgl.aesthetics.preference_scoreneobavezno
original_vgl.aesthetics.aesthetic_scoreneobavezno
original_vgl.photographic_characteristicsneobavezno
original_vgl.photographic_characteristics.depth_of_fieldneobavezno
original_vgl.photographic_characteristics.focusneobavezno
original_vgl.photographic_characteristics.camera_angleneobavezno
original_vgl.photographic_characteristics.lens_focal_lengthneobavezno
original_vgl.style_mediumneobavezno
original_vgl.text_renderneobavezno
original_vgl.contextneobavezno
original_vgl.artistic_styleneobavezno
original_vgl.edit_instructionneobavezno
new_vglneobavezno
new_vgl.short_descriptionneobavezno
new_vgl.objectsneobavezno
new_vgl.objects[].descriptionneobavezno
new_vgl.objects[].locationneobavezno
new_vgl.objects[].relationshipobavezno
new_vgl.objects[].relative_sizeneobavezno
new_vgl.objects[].shape_and_colorneobavezno
new_vgl.objects[].textureneobavezno
new_vgl.objects[].appearance_detailsneobavezno
new_vgl.objects[].number_of_objectsneobavezno
new_vgl.objects[].poseneobavezno
new_vgl.objects[].expressionneobavezno
new_vgl.objects[].clothingneobavezno
new_vgl.objects[].actionneobavezno
new_vgl.objects[].genderneobavezno
new_vgl.objects[].skin_tone_and_textureneobavezno
new_vgl.objects[].orientationneobavezno
new_vgl.background_settingneobavezno
new_vgl.lightingneobavezno
new_vgl.lighting.conditionsneobavezno
new_vgl.lighting.directionneobavezno
new_vgl.lighting.shadowsneobavezno
new_vgl.aestheticsneobavezno
new_vgl.aesthetics.compositionneobavezno
new_vgl.aesthetics.color_schemeneobavezno
new_vgl.aesthetics.mood_atmosphereneobavezno
new_vgl.aesthetics.preference_scoreneobavezno
new_vgl.aesthetics.aesthetic_scoreneobavezno
new_vgl.photographic_characteristicsneobavezno
new_vgl.photographic_characteristics.depth_of_fieldneobavezno
new_vgl.photographic_characteristics.focusneobavezno
new_vgl.photographic_characteristics.camera_angleneobavezno
new_vgl.photographic_characteristics.lens_focal_lengthneobavezno
new_vgl.style_mediumneobavezno
new_vgl.text_renderneobavezno
new_vgl.contextneobavezno
new_vgl.artistic_styleneobavezno
new_vgl.edit_instructionneobavezno
seedneobavezno
steps_numneobavezno
negative_promptneobavezno
guidance_scaleneobavezno
Parametri datoteka prihvaćaju javni https:// URL, data: URI do 10 MB ili file_url prenesene datoteke. Datoteke
Izlaz
{
"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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
"cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
}
}
Polja izlaza
- image
- object {url, content_type, file_name, file_size, width, height}Slika koju je proizveo model.
- images
- array of object {url, content_type, file_name, file_size, width, height}Slike proizvedene generiranjem.
- vgl
- objectVGL dokument upotrijebljen za generiranje slike.
- structured_instruction
- objectZastarjeli alias za isti dokument; umjesto toga upotrijebite `vgl`.
Druge varijante modela Fibo Edit
Više modela: Uređivanje slika
Za AI agente: ova je stranica u Markdownu dostupna na https://doitong.com/hr/developers/models/bria/fibo-edit/edit.md. Svi modeli i vodiči: https://doitong.com/developers/llms.txt






