Preskoči na vsebino

Fibo · Structured Prompt

Integracija

ID modela bria/fibo/generate/structured_prompt
# 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/generate/structured_prompt?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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"

Ta zahteva: 0,01 $ 10 API kreditov Zaženi na tej strani

Pridobi ključ API
Bria AI LLM #bria#fibo#structured-prompting

Poziv ali referenčno sliko pretvori v strukturirani opis JSON za Fibo, namesto da bi upodobila sliko

Bria AI · Podatki (JSON)

Tukaj bo vaš prvi rezultat

Spodaj sestavite zahtevo in jo zaženite s svojim ključem API. Izhodi se kopirajo v našo shrambo, kjer se hranijo za vedno ali 7 dni brezplačno.

Ustvari zahtevo

Kontrolniki se ustvarijo iz sheme modela. Koda in cena se posodobita, ko ju spreminjate.

Poziv, uporabljen za ustvarjanje slik.

Napredno image · seed · structured_prompt
image_url
Spustite datoteko ali

Referenčna slika, podana kot datoteka ali URL.

privzeto 5555

Seme, ki nadzoruje naključnost za ponovljive rezultate.

Strukturirani poziv, uporabljen za generiranje slike.

POST /run/bria/fibo/generate/structured_prompt?wait=20 cena → 0,01 $
# 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/generate/structured_prompt?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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"

Zaženi to zahtevo

Vaš ključ ostane v tem brskalniku: pošlje se samo v Doitong API in shrani v localStorage samo, če označite možnost Zapomni si. Pridobi ključ API

O modelu Fibo · Structured Prompt

Končna točka v slogu jezikovnega modela, ki vrne strukturirani poziv za sliko namesto same slike. Vnosi so `prompt`, obstoječi `structured_prompt` ali referenčni `image_url` ter `seed`. Izhod JSON vključuje polja, kot so estetika, osvetlitev, objekti, fotografske značilnosti, kratek opis, slogovni medij in besedilo za upodobitev.

Parametri

Pošlji kanonično ali izvorno ime, ne obeh. Kanonična imena

ImeVrsta PrivzetoDovoljeno Opis
promptneobvezno
Vrstastring | null
Poziv, uporabljen za ustvarjanje slik.
structured_promptneobvezno
Vrstaobject
Strukturirani poziv, uporabljen za generiranje slike.
structured_prompt.short_descriptionneobvezno
Vrstastring | null
Kratek opis predvidene izhodne slike.
structured_prompt.objectsneobvezno
Vrstaobject[]
Privzeto[]
Vsebino ustvarjene slike določite kot seznam, v katerem zabeležite lastnosti vsakega predmeta in njegove odnose z drugimi upodobljenimi predmeti.
structured_prompt.objects[].descriptionneobvezno
Vrstastring | null
Opis predvidenega izhodnega predmeta.
structured_prompt.objects[].locationneobvezno
Vrstastring | null
Položaj predmeta znotraj slike.
structured_prompt.objects[].relationshipobvezno
Vrstastring
Odnos predmeta do drugih predmetov na sliki.
structured_prompt.objects[].relative_sizeneobvezno
Vrstastring | null
Velikost predmeta glede na sliko.
structured_prompt.objects[].shape_and_colorneobvezno
Vrstastring | null
Oblika in barva predmeta.
structured_prompt.objects[].textureneobvezno
Vrstastring | null
Tekstura predmeta.
structured_prompt.objects[].appearance_detailsneobvezno
Vrstastring | null
Podrobnosti, ki opisujejo videz predmeta.
structured_prompt.objects[].number_of_objectsneobvezno
Vrstainteger | null
Število predmetov na sliki.
structured_prompt.objects[].poseneobvezno
Vrstastring | null
Poza upodobljenega predmeta.
structured_prompt.objects[].expressionneobvezno
Vrstastring | null
Izraz upodobljenega predmeta.
structured_prompt.objects[].clothingneobvezno
Vrstastring | null
Oblačila upodobljenega predmeta.
structured_prompt.objects[].actionneobvezno
Vrstastring | null
Dejanje, ki ga izvaja upodobljeni predmet.
structured_prompt.objects[].genderneobvezno
Vrstastring | null
Spol upodobljenega predmeta.
structured_prompt.objects[].skin_tone_and_textureneobvezno
Vrstastring | null
Tekstura in ton kože upodobljenega predmeta.
structured_prompt.objects[].orientationneobvezno
Vrstastring | null
Usmerjenost upodobljenega predmeta.
structured_prompt.background_settingneobvezno
Vrstastring | null
Nastavitev ozadja za ustvarjeno sliko.
structured_prompt.lightingneobvezno
Vrstaobject
Osvetlitev za ustvarjeno sliko.
structured_prompt.lighting.conditionsneobvezno
Vrstastring | null
Pogoji osvetlitve za ustvarjeno sliko.
structured_prompt.lighting.directionneobvezno
Vrstastring | null
Smer osvetlitve za ustvarjeno sliko.
structured_prompt.lighting.shadowsneobvezno
Vrstastring | null
Sence, ki jih je treba upodobiti na ustvarjeni sliki.
structured_prompt.aestheticsneobvezno
Vrstaobject
Estetske lastnosti ustvarjene slike.
structured_prompt.aesthetics.compositionneobvezno
Vrstastring | null
Kompozicija ustvarjene slike.
structured_prompt.aesthetics.color_schemeneobvezno
Vrstastring | null
Barvna paleta ustvarjene slike.
structured_prompt.aesthetics.mood_atmosphereneobvezno
Vrstastring | null
Razpoloženje in vzdušje ustvarjene slike.
structured_prompt.aesthetics.aesthetic_scoreneobvezno
Vrstastring | null
Estetska ocena slike, ki se generira.
structured_prompt.aesthetics.preference_scoreneobvezno
Vrstastring | null
Prednostna ocena slike, ki se generira.
structured_prompt.photographic_characteristicsneobvezno
Vrstaobject
Fotografske lastnosti ustvarjene slike.
structured_prompt.photographic_characteristics.depth_of_fieldneobvezno
Vrstastring | null
Globinska ostrina ustvarjene slike.
structured_prompt.photographic_characteristics.focusneobvezno
Vrstastring | null
Ostrenje ustvarjene slike.
structured_prompt.photographic_characteristics.camera_angleneobvezno
Vrstastring | null
Kot kamere za ustvarjeno sliko.
structured_prompt.photographic_characteristics.lens_focal_lengthneobvezno
Vrstastring | null
Nastavitev objektiva za ustvarjeno sliko, izražena kot goriščna razdalja.
structured_prompt.style_mediumneobvezno
Vrstastring | null
Slogovni medij za ustvarjeno sliko.
structured_prompt.text_renderneobvezno
Vrstaany[]
Privzeto[]
Seznam besedilnih vnosov, ki jih je treba vključiti v sliko.
structured_prompt.contextneobvezno
Vrstastring | null
Kontekst ustvarjene slike.
structured_prompt.artistic_styleneobvezno
Vrstastring | null
Umetniški slog ustvarjene slike.
structured_prompt.trigger_wordneobvezno
Vrstastring | null
structured_prompt.sub_trigger_wordneobvezno
Vrstastring | null
structured_prompt.art_directionneobvezno
Vrstastring | null
structured_prompt.action_descriptionneobvezno
Vrstastring | null
structured_prompt.actor_prefixneobvezno
Vrstastring | null
image_urlneobvezno image
Vrstaurl · image
Referenčna slika, podana kot datoteka ali URL.
seedneobvezno
Vrstainteger
Privzeto5555
Seme, ki nadzoruje naključnost za ponovljive rezultate.
obvezno Kanonično ime, prav tako sprejeto

Parametri datotek sprejmejo javni https:// URL, podatkovni URI data: do 10 MB ali file_url naložene datoteke. Datoteke

Izhod

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo/generate/structured_prompt",
  "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": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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",
      "aesthetic_score": "string",
      "preference_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"
  },
  "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Vaše datoteke, vaša izbiraVsak outputs[].url je kopija v naši shrambi: hrani se za vedno (plačilo na GB-mesec) ali 7 dni brezplačno, glede na nastavitev računa ali ?storage=.
Enaka struktura pri vsakem modelutype, url, content_type, width, height in duration za slike, videoposnetke in zvok. output je lasten objekt rezultata modela.
Polja izhoda
short_description
string | nullKratek opis predvidene izhodne slike.
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} | nullVsebino ustvarjene slike določite kot seznam, v katerem zabeležite lastnosti vsakega predmeta in njegove odnose z drugimi upodobljenimi predmeti.
background_setting
string | nullNastavitev ozadja za ustvarjeno sliko.
lighting
object {conditions, direction, shadows} | nullOsvetlitev za ustvarjeno sliko.
aesthetics
object {composition, color_scheme, mood_atmosphere, aesthetic_score, preference_score} | nullEstetske lastnosti ustvarjene slike.
photographic_characteristics
object {depth_of_field, focus, camera_angle, lens_focal_length} | nullFotografske lastnosti ustvarjene slike.
style_medium
string | nullSlogovni medij za ustvarjeno sliko.
text_render
array of any | nullSeznam besedilnih vnosov, ki jih je treba vključiti v sliko.
context
string | nullKontekst ustvarjene slike.
artistic_style
string | nullUmetniški slog ustvarjene slike.

Več modelov: LLM

Za agente AI: ta stran je v obliki Markdown na voljo na https://doitong.com/sl/developers/models/bria/fibo/generate/structured_prompt.md. Vsi modeli in vodniki: https://doitong.com/developers/llms.txt