Fibo Edit
Intégrer
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/fr/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": {}
}
Appelez le modèle Fibo Edit (bria/fibo-edit/edit) via la Doitong API. Documentation pour les agents : https://doitong.com/fr/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
{}
Si le statut de la réponse est "queued" ou "running", interrogez GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20 jusqu’à ce qu’il soit "succeeded" ; les fichiers se trouvent dans outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo-edit/edit avec le même corps renvoie le prix exact avant l’exécution.
Cette requête: 0,04 $ 40 crédits API L’exécuter sur cette page
Votre nouvelle clé API. Elle n’est affichée que maintenant et figure déjà dans le code et dans le champ de clé API ci-dessous. Gardez-la secrète : ne l’intégrez jamais dans du code exécuté dans un navigateur.
Votre premier résultat apparaîtra ici
Construisez une requête ci-dessous et exécutez-la avec votre clé API. Les sorties sont copiées dans notre stockage, conservées indéfiniment ou 7 jours gratuitement.
Créer une requête
Les contrôles sont générés à partir du schéma du modèle. Le code et le prix se mettent à jour lorsque vous les modifiez.
/run/bria/fibo-edit/edit?wait=20
devis → 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
}
}
}
Exécuter cette requête
Votre clé reste dans ce navigateur : elle est envoyée uniquement à la Doitong API et enregistrée dans localStorage uniquement si vous cochez Mémoriser. Obtenir une clé API
À propos de Fibo Edit
Modifie une image avec un contrôle précis. Les entrées comprennent `image_url`, un `mask_url` facultatif, et soit une `instruction`, soit un `vgl` préconstruit. Vous pouvez aussi fournir `original_vgl` et `new_vgl` pour modifier selon leur différence. `steps_num` va de 20 à 50 (30 par défaut), avec `guidance_scale`, `negative_prompt` et `seed` également disponibles.
Paramètres
Envoyez soit le nom canonique, soit le nom natif, mais pas les deux. Noms canoniques
image_urlfacultatif
image
mask_urlfacultatif
mask
instructionfacultatif
vglfacultatif
vgl.short_descriptionfacultatif
vgl.objectsfacultatif
vgl.objects[].descriptionfacultatif
vgl.objects[].locationfacultatif
vgl.objects[].relationshiprequis
vgl.objects[].relative_sizefacultatif
vgl.objects[].shape_and_colorfacultatif
vgl.objects[].texturefacultatif
vgl.objects[].appearance_detailsfacultatif
vgl.objects[].number_of_objectsfacultatif
vgl.objects[].posefacultatif
vgl.objects[].expressionfacultatif
vgl.objects[].clothingfacultatif
vgl.objects[].actionfacultatif
vgl.objects[].genderfacultatif
vgl.objects[].skin_tone_and_texturefacultatif
vgl.objects[].orientationfacultatif
vgl.background_settingfacultatif
vgl.lightingfacultatif
vgl.lighting.conditionsfacultatif
vgl.lighting.directionfacultatif
vgl.lighting.shadowsfacultatif
vgl.aestheticsfacultatif
vgl.aesthetics.compositionfacultatif
vgl.aesthetics.color_schemefacultatif
vgl.aesthetics.mood_atmospherefacultatif
vgl.aesthetics.preference_scorefacultatif
vgl.aesthetics.aesthetic_scorefacultatif
vgl.photographic_characteristicsfacultatif
vgl.photographic_characteristics.depth_of_fieldfacultatif
vgl.photographic_characteristics.focusfacultatif
vgl.photographic_characteristics.camera_anglefacultatif
vgl.photographic_characteristics.lens_focal_lengthfacultatif
vgl.style_mediumfacultatif
vgl.text_renderfacultatif
vgl.contextfacultatif
vgl.artistic_stylefacultatif
vgl.edit_instructionfacultatif
original_vglfacultatif
original_vgl.short_descriptionfacultatif
original_vgl.objectsfacultatif
original_vgl.objects[].descriptionfacultatif
original_vgl.objects[].locationfacultatif
original_vgl.objects[].relationshiprequis
original_vgl.objects[].relative_sizefacultatif
original_vgl.objects[].shape_and_colorfacultatif
original_vgl.objects[].texturefacultatif
original_vgl.objects[].appearance_detailsfacultatif
original_vgl.objects[].number_of_objectsfacultatif
original_vgl.objects[].posefacultatif
original_vgl.objects[].expressionfacultatif
original_vgl.objects[].clothingfacultatif
original_vgl.objects[].actionfacultatif
original_vgl.objects[].genderfacultatif
original_vgl.objects[].skin_tone_and_texturefacultatif
original_vgl.objects[].orientationfacultatif
original_vgl.background_settingfacultatif
original_vgl.lightingfacultatif
original_vgl.lighting.conditionsfacultatif
original_vgl.lighting.directionfacultatif
original_vgl.lighting.shadowsfacultatif
original_vgl.aestheticsfacultatif
original_vgl.aesthetics.compositionfacultatif
original_vgl.aesthetics.color_schemefacultatif
original_vgl.aesthetics.mood_atmospherefacultatif
original_vgl.aesthetics.preference_scorefacultatif
original_vgl.aesthetics.aesthetic_scorefacultatif
original_vgl.photographic_characteristicsfacultatif
original_vgl.photographic_characteristics.depth_of_fieldfacultatif
original_vgl.photographic_characteristics.focusfacultatif
original_vgl.photographic_characteristics.camera_anglefacultatif
original_vgl.photographic_characteristics.lens_focal_lengthfacultatif
original_vgl.style_mediumfacultatif
original_vgl.text_renderfacultatif
original_vgl.contextfacultatif
original_vgl.artistic_stylefacultatif
original_vgl.edit_instructionfacultatif
new_vglfacultatif
new_vgl.short_descriptionfacultatif
new_vgl.objectsfacultatif
new_vgl.objects[].descriptionfacultatif
new_vgl.objects[].locationfacultatif
new_vgl.objects[].relationshiprequis
new_vgl.objects[].relative_sizefacultatif
new_vgl.objects[].shape_and_colorfacultatif
new_vgl.objects[].texturefacultatif
new_vgl.objects[].appearance_detailsfacultatif
new_vgl.objects[].number_of_objectsfacultatif
new_vgl.objects[].posefacultatif
new_vgl.objects[].expressionfacultatif
new_vgl.objects[].clothingfacultatif
new_vgl.objects[].actionfacultatif
new_vgl.objects[].genderfacultatif
new_vgl.objects[].skin_tone_and_texturefacultatif
new_vgl.objects[].orientationfacultatif
new_vgl.background_settingfacultatif
new_vgl.lightingfacultatif
new_vgl.lighting.conditionsfacultatif
new_vgl.lighting.directionfacultatif
new_vgl.lighting.shadowsfacultatif
new_vgl.aestheticsfacultatif
new_vgl.aesthetics.compositionfacultatif
new_vgl.aesthetics.color_schemefacultatif
new_vgl.aesthetics.mood_atmospherefacultatif
new_vgl.aesthetics.preference_scorefacultatif
new_vgl.aesthetics.aesthetic_scorefacultatif
new_vgl.photographic_characteristicsfacultatif
new_vgl.photographic_characteristics.depth_of_fieldfacultatif
new_vgl.photographic_characteristics.focusfacultatif
new_vgl.photographic_characteristics.camera_anglefacultatif
new_vgl.photographic_characteristics.lens_focal_lengthfacultatif
new_vgl.style_mediumfacultatif
new_vgl.text_renderfacultatif
new_vgl.contextfacultatif
new_vgl.artistic_stylefacultatif
new_vgl.edit_instructionfacultatif
seedfacultatif
steps_numfacultatif
negative_promptfacultatif
guidance_scalefacultatif
Les paramètres de fichier acceptent une URL publique https://, un URI data: jusqu’à 10 MB ou le file_url d’un téléversement. Fichiers
Sortie
{
"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"
}
}
Champs de sortie
- image
- object {url, content_type, file_name, file_size, width, height}Image produite par le modèle.
- images
- array of object {url, content_type, file_name, file_size, width, height}Images produites par la génération.
- vgl
- objectDocument VGL utilisé pour générer l’image.
- structured_instruction
- objectAlias obsolète du même document ; utilisez `vgl` à la place.
Autres variantes Fibo Edit
Plus de modèles : Édition d’image
Pour les agents IA : cette page au format Markdown est disponible à https://doitong.com/fr/developers/models/bria/fibo-edit/edit.md. Tous les modèles et guides : https://doitong.com/developers/llms.txt






