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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
const API = "https://api.doitong.ru/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.ru/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/kk/developers/docs/mcp)
claude mcp add --transport http doitong-models https://api.doitong.ru/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/kk/developers/models/bria/fibo-edit/edit.md
POST https://api.doitong.ru/v1/run/bria/fibo-edit/edit?wait=20
Authorization: Bearer $DOITONG_API_KEY
Content-Type: application/json
{}
Жауап күйі "queued" немесе "running" болса, ол "succeeded" болғанша GET https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20 арқылы күйін тексеріңіз; файлдар outputs[].url ішінде болады. Дәл іске қосу бағасын алдын ала алу үшін POST https://api.doitong.ru/v1/quote/bria/fibo-edit/edit сұрауын сол денемен жіберіңіз.
Осы сұрау: 0,04 $ 40 API кредиті · ≈ 4,22 ₽ Осы бетте іске қосу
Жаңа 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
-H "Authorization: Bearer $DOITONG_API_KEY"
const API = "https://api.doitong.ru/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.ru/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-ге жіберіледі және Remember параметрін белгілеcеңіз ғана 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міндетті емес
Файл параметрлері жалпыға қолжетімді https:// URL мекенжайын, 10 MB-қа дейінгі data: URI мекенжайын немесе жүктеп салынған файлдың 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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
"cancel": "https://api.doitong.ru/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 модельдерінің басқа нұсқалары
Қосымша модельдер: Кескінді өңдеу
AI агенттеріне: бұл беттің Markdown нұсқасы мына жерде: https://doitong.com/kk/developers/models/bria/fibo-edit/edit.md. Барлық модельдер мен нұсқаулықтар: https://doitong.com/developers/llms.txt






