Fibo Edit
Integrasikan
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/ms/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": {}
}
Panggil model Fibo Edit (bria/fibo-edit/edit) melalui Doitong API. Dokumentasi untuk ejen: https://doitong.com/ms/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
{}
Jika status respons ialah "queued" atau "running", tinjau GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 sehingga statusnya menjadi "succeeded"; fail berada dalam outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit dengan badan yang sama mengembalikan harga tepat sebelum dijalankan.
Permintaan ini: $0.04 40 kredit API Jalankan pada halaman ini
Kunci API baharu anda. Ia hanya dipaparkan sekarang dan sudah dimasukkan dalam kod serta medan kunci API di bawah. Simpan secara rahsia: jangan sekali-kali letakkannya dalam kod yang berjalan dalam pelayar.
Hasil pertama anda akan muncul di sini
Bina permintaan di bawah dan jalankannya dengan kunci API anda. Output disalin ke storan kami, disimpan selama-lamanya atau 7 hari secara percuma.
Bina permintaan
Kawalan dijana daripada skema model. Kod dan harga dikemas kini apabila anda mengubahnya.
/run/bria/fibo-edit/edit?wait=20
sebut harga → $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
}
}
}
Jalankan permintaan ini
Kunci anda kekal dalam pelayar ini: ia hanya dihantar kepada Doitong API dan disimpan (localStorage) hanya jika anda menanda Ingat. Dapatkan kunci API
Tentang Fibo Edit
Menyunting imej dengan kawalan terperinci. Input termasuk `image_url`, `mask_url` pilihan dan sama ada `instruction` atau `vgl` yang telah dibina. Sebagai alternatif, berikan `original_vgl` dan `new_vgl` untuk menyunting berdasarkan perbezaannya. `steps_num` berjulat dari 20 hingga 50 (lalai 30), dengan `guidance_scale`, `negative_prompt` dan `seed` turut tersedia.
Parameter
Hantar sama ada nama kanonik atau nama natif, bukan kedua-duanya. Nama kanonik
image_urlpilihan
image
mask_urlpilihan
mask
instructionpilihan
vglpilihan
vgl.short_descriptionpilihan
vgl.objectspilihan
vgl.objects[].descriptionpilihan
vgl.objects[].locationpilihan
vgl.objects[].relationshipdiperlukan
vgl.objects[].relative_sizepilihan
vgl.objects[].shape_and_colorpilihan
vgl.objects[].texturepilihan
vgl.objects[].appearance_detailspilihan
vgl.objects[].number_of_objectspilihan
vgl.objects[].posepilihan
vgl.objects[].expressionpilihan
vgl.objects[].clothingpilihan
vgl.objects[].actionpilihan
vgl.objects[].genderpilihan
vgl.objects[].skin_tone_and_texturepilihan
vgl.objects[].orientationpilihan
vgl.background_settingpilihan
vgl.lightingpilihan
vgl.lighting.conditionspilihan
vgl.lighting.directionpilihan
vgl.lighting.shadowspilihan
vgl.aestheticspilihan
vgl.aesthetics.compositionpilihan
vgl.aesthetics.color_schemepilihan
vgl.aesthetics.mood_atmospherepilihan
vgl.aesthetics.preference_scorepilihan
vgl.aesthetics.aesthetic_scorepilihan
vgl.photographic_characteristicspilihan
vgl.photographic_characteristics.depth_of_fieldpilihan
vgl.photographic_characteristics.focuspilihan
vgl.photographic_characteristics.camera_anglepilihan
vgl.photographic_characteristics.lens_focal_lengthpilihan
vgl.style_mediumpilihan
vgl.text_renderpilihan
vgl.contextpilihan
vgl.artistic_stylepilihan
vgl.edit_instructionpilihan
original_vglpilihan
original_vgl.short_descriptionpilihan
original_vgl.objectspilihan
original_vgl.objects[].descriptionpilihan
original_vgl.objects[].locationpilihan
original_vgl.objects[].relationshipdiperlukan
original_vgl.objects[].relative_sizepilihan
original_vgl.objects[].shape_and_colorpilihan
original_vgl.objects[].texturepilihan
original_vgl.objects[].appearance_detailspilihan
original_vgl.objects[].number_of_objectspilihan
original_vgl.objects[].posepilihan
original_vgl.objects[].expressionpilihan
original_vgl.objects[].clothingpilihan
original_vgl.objects[].actionpilihan
original_vgl.objects[].genderpilihan
original_vgl.objects[].skin_tone_and_texturepilihan
original_vgl.objects[].orientationpilihan
original_vgl.background_settingpilihan
original_vgl.lightingpilihan
original_vgl.lighting.conditionspilihan
original_vgl.lighting.directionpilihan
original_vgl.lighting.shadowspilihan
original_vgl.aestheticspilihan
original_vgl.aesthetics.compositionpilihan
original_vgl.aesthetics.color_schemepilihan
original_vgl.aesthetics.mood_atmospherepilihan
original_vgl.aesthetics.preference_scorepilihan
original_vgl.aesthetics.aesthetic_scorepilihan
original_vgl.photographic_characteristicspilihan
original_vgl.photographic_characteristics.depth_of_fieldpilihan
original_vgl.photographic_characteristics.focuspilihan
original_vgl.photographic_characteristics.camera_anglepilihan
original_vgl.photographic_characteristics.lens_focal_lengthpilihan
original_vgl.style_mediumpilihan
original_vgl.text_renderpilihan
original_vgl.contextpilihan
original_vgl.artistic_stylepilihan
original_vgl.edit_instructionpilihan
new_vglpilihan
new_vgl.short_descriptionpilihan
new_vgl.objectspilihan
new_vgl.objects[].descriptionpilihan
new_vgl.objects[].locationpilihan
new_vgl.objects[].relationshipdiperlukan
new_vgl.objects[].relative_sizepilihan
new_vgl.objects[].shape_and_colorpilihan
new_vgl.objects[].texturepilihan
new_vgl.objects[].appearance_detailspilihan
new_vgl.objects[].number_of_objectspilihan
new_vgl.objects[].posepilihan
new_vgl.objects[].expressionpilihan
new_vgl.objects[].clothingpilihan
new_vgl.objects[].actionpilihan
new_vgl.objects[].genderpilihan
new_vgl.objects[].skin_tone_and_texturepilihan
new_vgl.objects[].orientationpilihan
new_vgl.background_settingpilihan
new_vgl.lightingpilihan
new_vgl.lighting.conditionspilihan
new_vgl.lighting.directionpilihan
new_vgl.lighting.shadowspilihan
new_vgl.aestheticspilihan
new_vgl.aesthetics.compositionpilihan
new_vgl.aesthetics.color_schemepilihan
new_vgl.aesthetics.mood_atmospherepilihan
new_vgl.aesthetics.preference_scorepilihan
new_vgl.aesthetics.aesthetic_scorepilihan
new_vgl.photographic_characteristicspilihan
new_vgl.photographic_characteristics.depth_of_fieldpilihan
new_vgl.photographic_characteristics.focuspilihan
new_vgl.photographic_characteristics.camera_anglepilihan
new_vgl.photographic_characteristics.lens_focal_lengthpilihan
new_vgl.style_mediumpilihan
new_vgl.text_renderpilihan
new_vgl.contextpilihan
new_vgl.artistic_stylepilihan
new_vgl.edit_instructionpilihan
seedpilihan
steps_numpilihan
negative_promptpilihan
guidance_scalepilihan
Parameter fail menerima URL awam https://, URI data: sehingga 10 MB, atau file_url bagi muat naik. Fail
Output
{
"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"
}
}
Medan output
- image
- object {url, content_type, file_name, file_size, width, height}Imej yang dihasilkan oleh model.
- images
- array of object {url, content_type, file_name, file_size, width, height}Imej yang dihasilkan oleh penjanaan.
- vgl
- objectDokumen VGL yang digunakan untuk menghasilkan imej.
- structured_instruction
- objectAlias yang tidak digunakan lagi untuk dokumen yang sama; gunakan `vgl` sebaliknya.
Varian Fibo Edit lain
Lebih banyak model: Penyuntingan Imej
Untuk ejen AI: halaman ini dalam Markdown tersedia di https://doitong.com/ms/developers/models/bria/fibo-edit/edit.md. Semua model dan panduan: https://doitong.com/developers/llms.txt






