Fibo Edit
Integrēt
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/lv/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": {}
}
Izsauciet Fibo Edit modeli (bria/fibo-edit/edit), izmantojot Doitong API. Dokumentācija aģentiem: https://doitong.com/lv/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
{}
Ja atbildes statuss ir "queued" vai "running", periodiski izsauciet GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20, līdz tas kļūst par "succeeded"; faili atrodas outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit ar to pašu pamattekstu atgriež precīzu cenu pirms izpildes.
Šis pieprasījums: 0,04 $ 40 API kredītu Izpildīt šajā lapā
Jūsu jaunā API atslēga. Tā tiek parādīta tikai tagad un jau ir ievietota kodā un tālāk esošajā API atslēgas laukā. Glabājiet to noslēpumā: nekad neievietojiet to kodā, kas darbojas pārlūkprogrammā.
Šeit būs jūsu pirmais rezultāts
Izveidojiet pieprasījumu tālāk un izpildiet to ar savu API atslēgu. Izvades tiek kopētas mūsu krātuvē un glabātas mūžīgi vai 7 dienas bez maksas.
Izveidot pieprasījumu
Vadīklas tiek ģenerētas no modeļa shēmas. Kods un cena tiek atjaunināti, kad tos maināt.
/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
}
}
}
Palaist šo pieprasījumu
Jūsu atslēga paliek šajā pārlūkprogrammā: tā tiek nosūtīta tikai uz Doitong API un saglabāta (localStorage) tikai tad, ja atzīmējat Atcerēties. Iegūt API atslēgu
Par Fibo Edit
Rediģē attēlu ar precīzu kontroli. Ievades ietver `image_url`, neobligātu `mask_url` un `instruction` vai iepriekš izveidotu `vgl`. Var arī norādīt `original_vgl` un `new_vgl`, lai rediģētu pēc to atšķirības. `steps_num` ir no 20 līdz 50 (noklusējums 30), pieejami arī `guidance_scale`, `negative_prompt` un `seed`.
Parametri
Nosūti vai nu kanonisko nosaukumu, vai vietējo nosaukumu, bet ne abus. Kan啤niskie nosaukumi
image_urlneobligāts
image
mask_urlneobligāts
mask
instructionneobligāts
vglneobligāts
vgl.short_descriptionneobligāts
vgl.objectsneobligāts
vgl.objects[].descriptionneobligāts
vgl.objects[].locationneobligāts
vgl.objects[].relationshipobligāts
vgl.objects[].relative_sizeneobligāts
vgl.objects[].shape_and_colorneobligāts
vgl.objects[].textureneobligāts
vgl.objects[].appearance_detailsneobligāts
vgl.objects[].number_of_objectsneobligāts
vgl.objects[].poseneobligāts
vgl.objects[].expressionneobligāts
vgl.objects[].clothingneobligāts
vgl.objects[].actionneobligāts
vgl.objects[].genderneobligāts
vgl.objects[].skin_tone_and_textureneobligāts
vgl.objects[].orientationneobligāts
vgl.background_settingneobligāts
vgl.lightingneobligāts
vgl.lighting.conditionsneobligāts
vgl.lighting.directionneobligāts
vgl.lighting.shadowsneobligāts
vgl.aestheticsneobligāts
vgl.aesthetics.compositionneobligāts
vgl.aesthetics.color_schemeneobligāts
vgl.aesthetics.mood_atmosphereneobligāts
vgl.aesthetics.preference_scoreneobligāts
vgl.aesthetics.aesthetic_scoreneobligāts
vgl.photographic_characteristicsneobligāts
vgl.photographic_characteristics.depth_of_fieldneobligāts
vgl.photographic_characteristics.focusneobligāts
vgl.photographic_characteristics.camera_angleneobligāts
vgl.photographic_characteristics.lens_focal_lengthneobligāts
vgl.style_mediumneobligāts
vgl.text_renderneobligāts
vgl.contextneobligāts
vgl.artistic_styleneobligāts
vgl.edit_instructionneobligāts
original_vglneobligāts
original_vgl.short_descriptionneobligāts
original_vgl.objectsneobligāts
original_vgl.objects[].descriptionneobligāts
original_vgl.objects[].locationneobligāts
original_vgl.objects[].relationshipobligāts
original_vgl.objects[].relative_sizeneobligāts
original_vgl.objects[].shape_and_colorneobligāts
original_vgl.objects[].textureneobligāts
original_vgl.objects[].appearance_detailsneobligāts
original_vgl.objects[].number_of_objectsneobligāts
original_vgl.objects[].poseneobligāts
original_vgl.objects[].expressionneobligāts
original_vgl.objects[].clothingneobligāts
original_vgl.objects[].actionneobligāts
original_vgl.objects[].genderneobligāts
original_vgl.objects[].skin_tone_and_textureneobligāts
original_vgl.objects[].orientationneobligāts
original_vgl.background_settingneobligāts
original_vgl.lightingneobligāts
original_vgl.lighting.conditionsneobligāts
original_vgl.lighting.directionneobligāts
original_vgl.lighting.shadowsneobligāts
original_vgl.aestheticsneobligāts
original_vgl.aesthetics.compositionneobligāts
original_vgl.aesthetics.color_schemeneobligāts
original_vgl.aesthetics.mood_atmosphereneobligāts
original_vgl.aesthetics.preference_scoreneobligāts
original_vgl.aesthetics.aesthetic_scoreneobligāts
original_vgl.photographic_characteristicsneobligāts
original_vgl.photographic_characteristics.depth_of_fieldneobligāts
original_vgl.photographic_characteristics.focusneobligāts
original_vgl.photographic_characteristics.camera_angleneobligāts
original_vgl.photographic_characteristics.lens_focal_lengthneobligāts
original_vgl.style_mediumneobligāts
original_vgl.text_renderneobligāts
original_vgl.contextneobligāts
original_vgl.artistic_styleneobligāts
original_vgl.edit_instructionneobligāts
new_vglneobligāts
new_vgl.short_descriptionneobligāts
new_vgl.objectsneobligāts
new_vgl.objects[].descriptionneobligāts
new_vgl.objects[].locationneobligāts
new_vgl.objects[].relationshipobligāts
new_vgl.objects[].relative_sizeneobligāts
new_vgl.objects[].shape_and_colorneobligāts
new_vgl.objects[].textureneobligāts
new_vgl.objects[].appearance_detailsneobligāts
new_vgl.objects[].number_of_objectsneobligāts
new_vgl.objects[].poseneobligāts
new_vgl.objects[].expressionneobligāts
new_vgl.objects[].clothingneobligāts
new_vgl.objects[].actionneobligāts
new_vgl.objects[].genderneobligāts
new_vgl.objects[].skin_tone_and_textureneobligāts
new_vgl.objects[].orientationneobligāts
new_vgl.background_settingneobligāts
new_vgl.lightingneobligāts
new_vgl.lighting.conditionsneobligāts
new_vgl.lighting.directionneobligāts
new_vgl.lighting.shadowsneobligāts
new_vgl.aestheticsneobligāts
new_vgl.aesthetics.compositionneobligāts
new_vgl.aesthetics.color_schemeneobligāts
new_vgl.aesthetics.mood_atmosphereneobligāts
new_vgl.aesthetics.preference_scoreneobligāts
new_vgl.aesthetics.aesthetic_scoreneobligāts
new_vgl.photographic_characteristicsneobligāts
new_vgl.photographic_characteristics.depth_of_fieldneobligāts
new_vgl.photographic_characteristics.focusneobligāts
new_vgl.photographic_characteristics.camera_angleneobligāts
new_vgl.photographic_characteristics.lens_focal_lengthneobligāts
new_vgl.style_mediumneobligāts
new_vgl.text_renderneobligāts
new_vgl.contextneobligāts
new_vgl.artistic_styleneobligāts
new_vgl.edit_instructionneobligāts
seedneobligāts
steps_numneobligāts
negative_promptneobligāts
guidance_scaleneobligāts
Failu parametriem nepieciešams publisks https:// URL, data: URI līdz 10 MB vai augšupielādes file_url. Faili
Izvade
{
"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"
}
}
Izvades lauki
- image
- object {url, content_type, file_name, file_size, width, height}Modeļa izveidotais attēls.
- images
- array of object {url, content_type, file_name, file_size, width, height}Ģenerēšanas rezultātā iegūtie attēli.
- vgl
- objectAttēla ģenerēšanai izmantotais VGL dokuments.
- structured_instruction
- objectNovecojis aizstājvārds tam pašam dokumentam; tā vietā izmantojiet `vgl`.
Citi Fibo Edit varianti
Vairāk modeļu: Attēlu rediģēšana
AI aģentiem: šī lapa Markdown formātā ir pieejama https://doitong.com/lv/developers/models/bria/fibo-edit/edit.md. Visi modeļi un ceļveži: https://doitong.com/developers/llms.txt






