Saltar al cuntegna

Fibo Edit [Structured Instruction]

Integrar

ID dal model bria/fibo-edit/edit/structured_instruction
# 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/structured_instruction?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"

Questa dumonda: $0,01 10 credits API · ≈ ₽1,05 Lantschar sin questa pagina

Obtegna ina clav API
Bria AI · Datas (JSON)

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

Avanzà instruction · image · mask · seed

Instrucziun che descriva l'editaziun dal maletg.

image_url
Trametta in datoteca u

Maletg da referenza furnì sco datoteca u URL.

mask_url
Trametta in datoteca u

Masca opziunala per il maletg da referenza, furnida sco datoteca u URL.

standard 5555

Seed che controlla la casualitad per resultats reproducibels.

POST /run/bria/fibo-edit/edit/structured_instruction?wait=20 calculaziun → $0,01
# 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/structured_instruction?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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Fibo Edit [Structured Instruction]

Generescha mo l'instrucziun structurada per ina modificaziun, betg in maletg. Ils inputs èn `image_url`, `mask_url`, `instruction` e `seed` facultativs. L'output JSON cuntegna champs sco objects, illuminaziun, estetica, ambient dal sfond, caracteristicas fotograficas e text da renderisar.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
image_urlopziunal image
Tipurl · image
Maletg da referenza furnì sco datoteca u URL.
mask_urlopziunal mask
Tipurl · image
Masca opziunala per il maletg da referenza, furnida sco datoteca u URL.
instructionopziunal
Tipstring | null
Instrucziun che descriva l'editaziun dal maletg.
seedopziunal
Tipinteger
Standard5555
Seed che controlla la casualitad per resultats reproducibels.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo-edit/edit/structured_instruction",
  "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": 10,
    "usd": "0.01",
    "charged": 10,
    "refunded": 0
  },
  "input": {},
  "output": {
    "short_description": "string",
    "objects": [
      {
        "description": "string",
        "location": "string",
        "relationship": "string",
        "relative_size": "string",
        "shape_and_color": "string",
        "texture": "string",
        "appearance_details": "string",
        "number_of_objects": 1,
        "pose": "string",
        "expression": "string",
        "clothing": "string",
        "action": "string",
        "gender": "string",
        "skin_tone_and_texture": "string",
        "orientation": "string"
      }
    ],
    "background_setting": "string",
    "lighting": {
      "conditions": "string",
      "direction": "string",
      "shadows": "string"
    },
    "aesthetics": {
      "composition": "string",
      "color_scheme": "string",
      "mood_atmosphere": "string",
      "preference_score": "string",
      "aesthetic_score": "string"
    },
    "photographic_characteristics": {
      "depth_of_field": "string",
      "focus": "string",
      "camera_angle": "string",
      "lens_focal_length": "string"
    },
    "style_medium": "string",
    "text_render": [],
    "context": "string",
    "artistic_style": "string",
    "edit_instruction": "string"
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
short_description
string | nullDescripziun curta dal maletg d'output giavischà.
objects
array of object {description, location, relationship, relative_size, shape_and_color, texture, appearance_details, number_of_objects, pose, expression, clothing, action, gender, skin_tone_and_texture, orientation} | nullDefinescha il cuntegnì dal maletg generà sco glista, cun registraziun dals attributs da mintga object e da lur relaziuns cun ils auters objects represchentads.
background_setting
string | nullFund per il maletg generà.
lighting
object {conditions, direction, shadows} | nullIlluminaziun dal maletg generà.
aesthetics
object {composition, color_scheme, mood_atmosphere, preference_score, aesthetic_score} | nullQualitads esteticas dal maletg generà.
photographic_characteristics
object {depth_of_field, focus, camera_angle, lens_focal_length} | nullCaracteristicas fotografias dal maletg generà.
style_medium
string | nullMedium stilistic dal maletg generà.
text_render
array of any | nullGlista d'entradas da text d'integrar en il maletg.
context
string | nullContext per il maletg generà.
artistic_style
string | nullStil artistic dal maletg generà.
edit_instruction
string | nullInstrucziun che descriva co editar il maletg.

Dapli models: LLM

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/bria/fibo-edit/edit/structured_instruction.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt