Fibo Edit 1.5 Image Editing
Интеграция
bria/fibo-edit-1.5/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-1.5/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-1.5/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-1.5/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/ru/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-1.5/edit",
"input": {}
}
Вызовите модель Fibo Edit 1.5 Image Editing (bria/fibo-edit-1.5/edit) через Doitong API. Документация для агентов: https://doitong.com/ru/developers/models/bria/fibo-edit-1.5/edit.md
POST https://api.doitong.com/v1/run/bria/fibo-edit-1.5/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-1.5/edit с тем же телом возвращает точную цену до запуска.
Этот запрос: 0,04 $ 40 API-кредитов · ≈ 4,19 ₽ Запустить на этой странице
Ваш новый API-ключ. Он отображается только сейчас и уже вставлен в код и поле API-ключа ниже. Храните его в секрете: никогда не помещайте его в код, выполняемый в браузере.
Здесь появится ваш первый результат
Составьте запрос ниже и выполните его с помощью API-ключа. Результаты копируются в наше хранилище и хранятся навсегда или 7 дней бесплатно.
Сформировать запрос
Элементы управления сгенерированы из схемы модели. Код и цена обновляются при изменении параметров.
/run/bria/fibo-edit-1.5/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-1.5/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-1.5/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-1.5/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-1.5/edit",
"input": {},
"wait_seconds": 20
}
}
}
Запустить этот запрос
Ваш ключ хранится в этом браузере: он отправляется только в Doitong API и сохраняется в localStorage только при включении параметра «Запомнить». Получить API-ключ
О Fibo Edit 1.5 Image Editing
Редактирует изображения по инструкции на естественном языке `instruction`, используя от одного до четырёх эталонных изображений в `image_urls`; их порядок важен. Подходит для виртуальной примерки, замены фона и переноса стиля. В запросах с одним изображением `mask_url` ограничивает область редактирования, а `structured_instruction` позволяет повторно использовать предыдущий результат. `aspect_ratio` применяется только при двух и более изображениях.
Параметры
Передавайте либо каноническое имя, либо исходное имя, но не оба. Канонические имена
image_urlsнеобязательно
images
instructionнеобязательно
aspect_ratioнеобязательно
seedнеобязательно
mask_urlнеобязательно
mask
structured_instructionнеобязательно
structured_instruction.short_descriptionнеобязательно
structured_instruction.objectsнеобязательно
structured_instruction.objects[].descriptionнеобязательно
structured_instruction.objects[].locationнеобязательно
structured_instruction.objects[].relationshipобязательно
structured_instruction.objects[].relative_sizeнеобязательно
structured_instruction.objects[].shape_and_colorнеобязательно
structured_instruction.objects[].textureнеобязательно
structured_instruction.objects[].appearance_detailsнеобязательно
structured_instruction.objects[].number_of_objectsнеобязательно
structured_instruction.objects[].poseнеобязательно
structured_instruction.objects[].expressionнеобязательно
structured_instruction.objects[].clothingнеобязательно
structured_instruction.objects[].actionнеобязательно
structured_instruction.objects[].genderнеобязательно
structured_instruction.objects[].skin_tone_and_textureнеобязательно
structured_instruction.objects[].orientationнеобязательно
structured_instruction.background_settingнеобязательно
structured_instruction.lightingнеобязательно
structured_instruction.lighting.conditionsнеобязательно
structured_instruction.lighting.directionнеобязательно
structured_instruction.lighting.shadowsнеобязательно
structured_instruction.aestheticsнеобязательно
structured_instruction.aesthetics.compositionнеобязательно
structured_instruction.aesthetics.color_schemeнеобязательно
structured_instruction.aesthetics.mood_atmosphereнеобязательно
structured_instruction.aesthetics.aesthetic_scoreнеобязательно
structured_instruction.aesthetics.preference_scoreнеобязательно
structured_instruction.photographic_characteristicsнеобязательно
structured_instruction.photographic_characteristics.depth_of_fieldнеобязательно
structured_instruction.photographic_characteristics.focusнеобязательно
structured_instruction.photographic_characteristics.camera_angleнеобязательно
structured_instruction.photographic_characteristics.lens_focal_lengthнеобязательно
structured_instruction.style_mediumнеобязательно
structured_instruction.text_renderнеобязательно
structured_instruction.contextнеобязательно
structured_instruction.artistic_styleнеобязательно
structured_instruction.edit_instructionнеобязательно
Параметры файлов принимают общедоступный https:// URL, data: URI размером до 10 MB или file_url загруженного файла. Файлы
Результат
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"object": "request",
"model": "bria/fibo-edit-1.5/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
}
],
"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}Отредактированный результат, пропорции которого соответствуют aspect_ratio, если он указан, или исходному изображению в противном случае.
- images
- array of object {url, content_type, file_name, file_size, width, height}Совместимый с предыдущими версиями ответ для клиентов, использующих старый маршрут Fibo Edit API: список, единственный элемент которого — то же изображение.
- structured_instruction
- objectРасширенная интерпретация описания, возвращаемая как фактически выполненная структурированная инструкция. Она объединяет встроенную инструкцию и содержимое, переданное через `instruction`.
Другие варианты Bria Fibo Edit 1.5
Другие модели: Редактирование изображений
Для AI-агентов: эта страница в формате Markdown доступна по адресу https://doitong.com/ru/developers/models/bria/fibo-edit-1.5/edit.md. Все модели и руководства: https://doitong.com/developers/llms.txt






