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/id/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 agen: https://doitong.com/id/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 adalah "queued" atau "running", lakukan polling GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 hingga statusnya menjadi "succeeded"; file terdapat di outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit dengan body yang sama mengembalikan harga pasti sebelum dijalankan.
Permintaan ini: $0,04 40 kredit API Jalankan di halaman ini
Kunci API baru Anda. Ini hanya ditampilkan sekarang dan sudah dimasukkan ke dalam kode serta kolom kunci API di bawah. Simpan secara rahasia: jangan pernah menaruhnya di kode yang berjalan di browser.
Hasil pertama Anda akan muncul di sini
Buat permintaan di bawah ini dan jalankan dengan kunci API Anda. Output disalin ke penyimpanan kami, disimpan selamanya atau 7 hari gratis.
Buat permintaan
Kontrol dibuat dari skema model. Kode dan harga diperbarui saat Anda mengubahnya.
/run/bria/fibo-edit/edit?wait=20
estimasi 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
Key Anda tetap berada di browser ini: key hanya dikirim ke Doitong API dan disimpan (localStorage) hanya jika Anda mencentang Ingat. Dapatkan kunci API
Tentang Fibo Edit
Mengedit gambar dengan kontrol terperinci. Input mencakup `image_url`, `mask_url` opsional, serta `instruction` atau `vgl`. Sebagai alternatif, berikan `original_vgl` dan `new_vgl` untuk mengedit berdasarkan perbedaannya. `steps_num` berkisar dari 20 hingga 50 (default 30), dengan `guidance_scale`, `negative_prompt`, dan `seed` yang juga tersedia.
Parameter
Kirim nama kanonis atau nama asli, bukan keduanya. Nama kanonis
image_urlopsional
image
mask_urlopsional
mask
instructionopsional
vglopsional
vgl.short_descriptionopsional
vgl.objectsopsional
vgl.objects[].descriptionopsional
vgl.objects[].locationopsional
vgl.objects[].relationshipwajib
vgl.objects[].relative_sizeopsional
vgl.objects[].shape_and_coloropsional
vgl.objects[].textureopsional
vgl.objects[].appearance_detailsopsional
vgl.objects[].number_of_objectsopsional
vgl.objects[].poseopsional
vgl.objects[].expressionopsional
vgl.objects[].clothingopsional
vgl.objects[].actionopsional
vgl.objects[].genderopsional
vgl.objects[].skin_tone_and_textureopsional
vgl.objects[].orientationopsional
vgl.background_settingopsional
vgl.lightingopsional
vgl.lighting.conditionsopsional
vgl.lighting.directionopsional
vgl.lighting.shadowsopsional
vgl.aestheticsopsional
vgl.aesthetics.compositionopsional
vgl.aesthetics.color_schemeopsional
vgl.aesthetics.mood_atmosphereopsional
vgl.aesthetics.preference_scoreopsional
vgl.aesthetics.aesthetic_scoreopsional
vgl.photographic_characteristicsopsional
vgl.photographic_characteristics.depth_of_fieldopsional
vgl.photographic_characteristics.focusopsional
vgl.photographic_characteristics.camera_angleopsional
vgl.photographic_characteristics.lens_focal_lengthopsional
vgl.style_mediumopsional
vgl.text_renderopsional
vgl.contextopsional
vgl.artistic_styleopsional
vgl.edit_instructionopsional
original_vglopsional
original_vgl.short_descriptionopsional
original_vgl.objectsopsional
original_vgl.objects[].descriptionopsional
original_vgl.objects[].locationopsional
original_vgl.objects[].relationshipwajib
original_vgl.objects[].relative_sizeopsional
original_vgl.objects[].shape_and_coloropsional
original_vgl.objects[].textureopsional
original_vgl.objects[].appearance_detailsopsional
original_vgl.objects[].number_of_objectsopsional
original_vgl.objects[].poseopsional
original_vgl.objects[].expressionopsional
original_vgl.objects[].clothingopsional
original_vgl.objects[].actionopsional
original_vgl.objects[].genderopsional
original_vgl.objects[].skin_tone_and_textureopsional
original_vgl.objects[].orientationopsional
original_vgl.background_settingopsional
original_vgl.lightingopsional
original_vgl.lighting.conditionsopsional
original_vgl.lighting.directionopsional
original_vgl.lighting.shadowsopsional
original_vgl.aestheticsopsional
original_vgl.aesthetics.compositionopsional
original_vgl.aesthetics.color_schemeopsional
original_vgl.aesthetics.mood_atmosphereopsional
original_vgl.aesthetics.preference_scoreopsional
original_vgl.aesthetics.aesthetic_scoreopsional
original_vgl.photographic_characteristicsopsional
original_vgl.photographic_characteristics.depth_of_fieldopsional
original_vgl.photographic_characteristics.focusopsional
original_vgl.photographic_characteristics.camera_angleopsional
original_vgl.photographic_characteristics.lens_focal_lengthopsional
original_vgl.style_mediumopsional
original_vgl.text_renderopsional
original_vgl.contextopsional
original_vgl.artistic_styleopsional
original_vgl.edit_instructionopsional
new_vglopsional
new_vgl.short_descriptionopsional
new_vgl.objectsopsional
new_vgl.objects[].descriptionopsional
new_vgl.objects[].locationopsional
new_vgl.objects[].relationshipwajib
new_vgl.objects[].relative_sizeopsional
new_vgl.objects[].shape_and_coloropsional
new_vgl.objects[].textureopsional
new_vgl.objects[].appearance_detailsopsional
new_vgl.objects[].number_of_objectsopsional
new_vgl.objects[].poseopsional
new_vgl.objects[].expressionopsional
new_vgl.objects[].clothingopsional
new_vgl.objects[].actionopsional
new_vgl.objects[].genderopsional
new_vgl.objects[].skin_tone_and_textureopsional
new_vgl.objects[].orientationopsional
new_vgl.background_settingopsional
new_vgl.lightingopsional
new_vgl.lighting.conditionsopsional
new_vgl.lighting.directionopsional
new_vgl.lighting.shadowsopsional
new_vgl.aestheticsopsional
new_vgl.aesthetics.compositionopsional
new_vgl.aesthetics.color_schemeopsional
new_vgl.aesthetics.mood_atmosphereopsional
new_vgl.aesthetics.preference_scoreopsional
new_vgl.aesthetics.aesthetic_scoreopsional
new_vgl.photographic_characteristicsopsional
new_vgl.photographic_characteristics.depth_of_fieldopsional
new_vgl.photographic_characteristics.focusopsional
new_vgl.photographic_characteristics.camera_angleopsional
new_vgl.photographic_characteristics.lens_focal_lengthopsional
new_vgl.style_mediumopsional
new_vgl.text_renderopsional
new_vgl.contextopsional
new_vgl.artistic_styleopsional
new_vgl.edit_instructionopsional
seedopsional
steps_numopsional
negative_promptopsional
guidance_scaleopsional
Parameter file menerima URL publik https://, URI data: hingga 10 MB, atau file_url dari unggahan. File
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"
}
}
Field output
- image
- object {url, content_type, file_name, file_size, width, height}Gambar yang dihasilkan oleh model.
- images
- array of object {url, content_type, file_name, file_size, width, height}Gambar yang dihasilkan oleh pembuatan.
- vgl
- objectDokumen VGL yang digunakan untuk menghasilkan gambar.
- structured_instruction
- objectAlias yang sudah tidak digunakan untuk dokumen yang sama; gunakan `vgl` sebagai gantinya.
Varian Fibo Edit lainnya
Model lainnya: Pengeditan Gambar
Untuk agen AI: halaman ini dalam Markdown tersedia di https://doitong.com/id/developers/models/bria/fibo-edit/edit.md. Semua model dan panduan: https://doitong.com/developers/llms.txt






