Fibo · Structured Prompt
Integrer
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"
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/generate/structured_prompt?wait=20", {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}),
});
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 = {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bria/fibo/generate/structured_prompt", 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/no/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/generate/structured_prompt",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
}
Kall Fibo · Structured Prompt-modellen (bria/fibo/generate/structured_prompt) gjennom Doitong API. Dokumentasjon for agenter: https://doitong.com/no/developers/models/bria/fibo/generate/structured_prompt.md
POST https://api.doitong.com/v1/run/bria/fibo/generate/structured_prompt?wait=20
Authorization: Bearer $DOITONG_API_KEY
Content-Type: application/json
{
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
Hvis responsstatusen er "queued" eller "running", send GET https://api.doitong.com/v1/requests/REQUEST_ID?wait=20-forespørsler til den er "succeeded"; filene ligger i outputs[].url. POST https://api.doitong.com/v1/quote/bria/fibo/generate/structured_prompt med samme innhold returnerer den nøyaktige prisen før kjøringen.
Denne forespørselen: 0,01 $ 10 API-kreditter Kjør den på denne siden
Din nye API-nøkkel. Den vises bare nå og er allerede satt inn i koden og i API-nøkkelfeltet nedenfor. Hold den hemmelig: Legg den aldri i kode som kjører i en nettleser.
Det første resultatet ditt kommer her
Bygg en forespørsel nedenfor og kjør den med API-nøkkelen din. Utdata kopieres til lagringen vår, lagret for alltid eller 7 dager gratis.
Bygg en forespørsel
Kontrollene genereres fra modellskjemaet. Koden og prisen oppdateres når du endrer dem.
/run/bria/fibo/generate/structured_prompt?wait=20
pris → 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"
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/generate/structured_prompt?wait=20", {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}),
});
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 = {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}
# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bria/fibo/generate/structured_prompt", 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/generate/structured_prompt",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
},
"wait_seconds": 20
}
}
}
Kjør denne forespørselen
Nøkkelen din blir i denne nettleseren: Den sendes bare til Doitong API og lagres bare i localStorage hvis du krysser av for Husk. Hent en API-nøkkel
Om Fibo · Structured Prompt
Språkmodellbasert endepunkt som returnerer den strukturerte prompten for et bilde, ikke selve bildet. Inndata er `prompt`, en eksisterende `structured_prompt` eller en referanse-`image_url`, samt `seed`. JSON-utdataene omfatter felt som estetikk, belysning, objekter, fotografiske egenskaper, kort beskrivelse, stilmedium og tekst som skal gjengis.
Parametere
Send enten det kanoniske navnet eller det opprinnelige navnet, ikke begge. Kanoniske navn
promptvalgfritt
structured_promptvalgfritt
structured_prompt.short_descriptionvalgfritt
structured_prompt.objectsvalgfritt
structured_prompt.objects[].descriptionvalgfritt
structured_prompt.objects[].locationvalgfritt
structured_prompt.objects[].relationshipobligatorisk
structured_prompt.objects[].relative_sizevalgfritt
structured_prompt.objects[].shape_and_colorvalgfritt
structured_prompt.objects[].texturevalgfritt
structured_prompt.objects[].appearance_detailsvalgfritt
structured_prompt.objects[].number_of_objectsvalgfritt
structured_prompt.objects[].posevalgfritt
structured_prompt.objects[].expressionvalgfritt
structured_prompt.objects[].clothingvalgfritt
structured_prompt.objects[].actionvalgfritt
structured_prompt.objects[].gendervalgfritt
structured_prompt.objects[].skin_tone_and_texturevalgfritt
structured_prompt.objects[].orientationvalgfritt
structured_prompt.background_settingvalgfritt
structured_prompt.lightingvalgfritt
structured_prompt.lighting.conditionsvalgfritt
structured_prompt.lighting.directionvalgfritt
structured_prompt.lighting.shadowsvalgfritt
structured_prompt.aestheticsvalgfritt
structured_prompt.aesthetics.compositionvalgfritt
structured_prompt.aesthetics.color_schemevalgfritt
structured_prompt.aesthetics.mood_atmospherevalgfritt
structured_prompt.aesthetics.aesthetic_scorevalgfritt
structured_prompt.aesthetics.preference_scorevalgfritt
structured_prompt.photographic_characteristicsvalgfritt
structured_prompt.photographic_characteristics.depth_of_fieldvalgfritt
structured_prompt.photographic_characteristics.focusvalgfritt
structured_prompt.photographic_characteristics.camera_anglevalgfritt
structured_prompt.photographic_characteristics.lens_focal_lengthvalgfritt
structured_prompt.style_mediumvalgfritt
structured_prompt.text_rendervalgfritt
structured_prompt.contextvalgfritt
structured_prompt.artistic_stylevalgfritt
structured_prompt.trigger_wordvalgfritt
structured_prompt.sub_trigger_wordvalgfritt
structured_prompt.art_directionvalgfritt
structured_prompt.action_descriptionvalgfritt
structured_prompt.actor_prefixvalgfritt
image_urlvalgfritt
image
seedvalgfritt
Filparametere tar imot en offentlig https:// URL, en data: URI på opptil 10 MB eller file_url fra en opplasting. Filer
Utdata
{
"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"
}
}
Utdatafelt
- short_description
- string | nullKort beskrivelse av det tiltenkte utdata-bildet.
- 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} | nullAngi innholdet i det genererte bildet som en liste, og registrer hvert objekts egenskaper og forholdet til de andre avbildede objektene.
- background_setting
- string | nullBakgrunn for det genererte bildet.
- lighting
- object {conditions, direction, shadows} | nullBelysning for det genererte bildet.
- aesthetics
- object {composition, color_scheme, mood_atmosphere, aesthetic_score, preference_score} | nullEstetiske egenskaper for det genererte bildet.
- photographic_characteristics
- object {depth_of_field, focus, camera_angle, lens_focal_length} | nullFotografiske egenskaper for det genererte bildet.
- style_medium
- string | nullStilistisk medium for det genererte bildet.
- text_render
- array of any | nullListe over tekstoppføringer som skal inkluderes i bildet.
- context
- string | nullKontekst for det genererte bildet.
- artistic_style
- string | nullKunstnerisk stil for det genererte bildet.
Andre Bria Fibo-varianter
Flere modeller: LLM
For AI-agenter: Denne siden som Markdown finnes på https://doitong.com/no/developers/models/bria/fibo/generate/structured_prompt.md. Alle modeller og veiledninger: https://doitong.com/developers/llms.txt