Fibo Edit
التكامل
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/ar/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": {}
}
استدعِ نموذج Fibo Edit (bria/fibo-edit/edit) عبر Doitong API. توثيق الوكلاء: https://doitong.com/ar/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
{}
إذا كانت حالة الاستجابة "queued" أو "running"، فأرسل طلبات GET إلى https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 حتى تصبح "succeeded"؛ توجد الملفات في outputs[].url. يعيد POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit مع نفس النص الأساسي السعر الدقيق قبل التشغيل.
هذا الطلب: 0.04 $ 40 رصيد API تشغيله في هذه الصفحة
مفتاح API الجديد الخاص بك. يظهر الآن فقط، وهو مُدرج بالفعل في الشيفرة وفي حقل مفتاح API أدناه. احتفظ به سريًا: لا تضعه أبدًا في شيفرة تعمل في المتصفح.
ستظهر نتيجتك الأولى هنا
أنشئ طلبًا أدناه وشغّله باستخدام مفتاح API الخاص بك. تُنسخ المخرجات إلى تخزيننا، وتُحفظ إلى الأبد أو لمدة 7 أيام مجانًا.
إنشاء طلب
تُنشأ عناصر التحكم من مخطط النموذج. يتحدّث الرمز والسعر عند تغييرها.
/run/bria/fibo-edit/edit?wait=20
عرض السعر → 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
}
}
}
تشغيل هذا الطلب
يبقى مفتاحك في هذا المتصفح: لا يُرسل إلا إلى Doitong API ويُحفظ في localStorage فقط إذا فعّلت خيار التذكّر. الحصول على مفتاح API
حول Fibo Edit
يحرر صورة بتحكم دقيق. تشمل المدخلات `image_url` و`mask_url` اختيارياً، وإما `instruction` أو `vgl` مُعداً مسبقاً. ويمكن بدلاً من ذلك تقديم `original_vgl` و`new_vgl` للتحرير وفق الفرق بينهما. يتراوح `steps_num` من 20 إلى 50 (الافتراضي 30)، مع توفر `guidance_scale` و`negative_prompt` و`seed` أيضاً.
المعاملات
أرسل الاسم الأساسي أو الاسم الأصلي، وليس كليهما. الأسماء الأساسية
image_urlاختياري
image
mask_urlاختياري
mask
instructionاختياري
vglاختياري
vgl.short_descriptionاختياري
vgl.objectsاختياري
vgl.objects[].descriptionاختياري
vgl.objects[].locationاختياري
vgl.objects[].relationshipمطلوب
vgl.objects[].relative_sizeاختياري
vgl.objects[].shape_and_colorاختياري
vgl.objects[].textureاختياري
vgl.objects[].appearance_detailsاختياري
vgl.objects[].number_of_objectsاختياري
vgl.objects[].poseاختياري
vgl.objects[].expressionاختياري
vgl.objects[].clothingاختياري
vgl.objects[].actionاختياري
vgl.objects[].genderاختياري
vgl.objects[].skin_tone_and_textureاختياري
vgl.objects[].orientationاختياري
vgl.background_settingاختياري
vgl.lightingاختياري
vgl.lighting.conditionsاختياري
vgl.lighting.directionاختياري
vgl.lighting.shadowsاختياري
vgl.aestheticsاختياري
vgl.aesthetics.compositionاختياري
vgl.aesthetics.color_schemeاختياري
vgl.aesthetics.mood_atmosphereاختياري
vgl.aesthetics.preference_scoreاختياري
vgl.aesthetics.aesthetic_scoreاختياري
vgl.photographic_characteristicsاختياري
vgl.photographic_characteristics.depth_of_fieldاختياري
vgl.photographic_characteristics.focusاختياري
vgl.photographic_characteristics.camera_angleاختياري
vgl.photographic_characteristics.lens_focal_lengthاختياري
vgl.style_mediumاختياري
vgl.text_renderاختياري
vgl.contextاختياري
vgl.artistic_styleاختياري
vgl.edit_instructionاختياري
original_vglاختياري
original_vgl.short_descriptionاختياري
original_vgl.objectsاختياري
original_vgl.objects[].descriptionاختياري
original_vgl.objects[].locationاختياري
original_vgl.objects[].relationshipمطلوب
original_vgl.objects[].relative_sizeاختياري
original_vgl.objects[].shape_and_colorاختياري
original_vgl.objects[].textureاختياري
original_vgl.objects[].appearance_detailsاختياري
original_vgl.objects[].number_of_objectsاختياري
original_vgl.objects[].poseاختياري
original_vgl.objects[].expressionاختياري
original_vgl.objects[].clothingاختياري
original_vgl.objects[].actionاختياري
original_vgl.objects[].genderاختياري
original_vgl.objects[].skin_tone_and_textureاختياري
original_vgl.objects[].orientationاختياري
original_vgl.background_settingاختياري
original_vgl.lightingاختياري
original_vgl.lighting.conditionsاختياري
original_vgl.lighting.directionاختياري
original_vgl.lighting.shadowsاختياري
original_vgl.aestheticsاختياري
original_vgl.aesthetics.compositionاختياري
original_vgl.aesthetics.color_schemeاختياري
original_vgl.aesthetics.mood_atmosphereاختياري
original_vgl.aesthetics.preference_scoreاختياري
original_vgl.aesthetics.aesthetic_scoreاختياري
original_vgl.photographic_characteristicsاختياري
original_vgl.photographic_characteristics.depth_of_fieldاختياري
original_vgl.photographic_characteristics.focusاختياري
original_vgl.photographic_characteristics.camera_angleاختياري
original_vgl.photographic_characteristics.lens_focal_lengthاختياري
original_vgl.style_mediumاختياري
original_vgl.text_renderاختياري
original_vgl.contextاختياري
original_vgl.artistic_styleاختياري
original_vgl.edit_instructionاختياري
new_vglاختياري
new_vgl.short_descriptionاختياري
new_vgl.objectsاختياري
new_vgl.objects[].descriptionاختياري
new_vgl.objects[].locationاختياري
new_vgl.objects[].relationshipمطلوب
new_vgl.objects[].relative_sizeاختياري
new_vgl.objects[].shape_and_colorاختياري
new_vgl.objects[].textureاختياري
new_vgl.objects[].appearance_detailsاختياري
new_vgl.objects[].number_of_objectsاختياري
new_vgl.objects[].poseاختياري
new_vgl.objects[].expressionاختياري
new_vgl.objects[].clothingاختياري
new_vgl.objects[].actionاختياري
new_vgl.objects[].genderاختياري
new_vgl.objects[].skin_tone_and_textureاختياري
new_vgl.objects[].orientationاختياري
new_vgl.background_settingاختياري
new_vgl.lightingاختياري
new_vgl.lighting.conditionsاختياري
new_vgl.lighting.directionاختياري
new_vgl.lighting.shadowsاختياري
new_vgl.aestheticsاختياري
new_vgl.aesthetics.compositionاختياري
new_vgl.aesthetics.color_schemeاختياري
new_vgl.aesthetics.mood_atmosphereاختياري
new_vgl.aesthetics.preference_scoreاختياري
new_vgl.aesthetics.aesthetic_scoreاختياري
new_vgl.photographic_characteristicsاختياري
new_vgl.photographic_characteristics.depth_of_fieldاختياري
new_vgl.photographic_characteristics.focusاختياري
new_vgl.photographic_characteristics.camera_angleاختياري
new_vgl.photographic_characteristics.lens_focal_lengthاختياري
new_vgl.style_mediumاختياري
new_vgl.text_renderاختياري
new_vgl.contextاختياري
new_vgl.artistic_styleاختياري
new_vgl.edit_instructionاختياري
seedاختياري
steps_numاختياري
negative_promptاختياري
guidance_scaleاختياري
تقبل معاملات الملفات عنوان URL عامًا يبدأ بـ https://، أو URI من نوع data: يصل حجمه إلى 10 MB، أو file_url لملف تم تحميله. الملفات
المخرجات
{
"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"
}
}
حقول المخرجات
- image
- object {url, content_type, file_name, file_size, width, height}الصورة التي أنتجها النموذج.
- images
- array of object {url, content_type, file_name, file_size, width, height}الصور الناتجة عن التوليد.
- vgl
- objectمستند VGL المستخدم لتوليد الصورة.
- structured_instruction
- objectاسم مستعار مهمل للمستند نفسه؛ استخدم `vgl` بدلًا منه.
أنواع Fibo Edit الأخرى
مزيد من النماذج: تحرير الصور
لوكلاء الذكاء الاصطناعي: تتوفر هذه الصفحة بصيغة Markdown على https://doitong.com/ar/developers/models/bria/fibo-edit/edit.md. جميع النماذج والأدلة: https://doitong.com/developers/llms.txt






