Fibo Lite · Structured Prompt
Integrera
bria/fibo-lite/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.ru/v1/run/bria/fibo-lite/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.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-lite/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.ru/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-lite/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/sv/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-lite/generate/structured_prompt",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
}
Anropa modellen Fibo Lite · Structured Prompt (bria/fibo-lite/generate/structured_prompt) via Doitong API. Dokumentation för agenter: https://doitong.com/sv/developers/models/bria/fibo-lite/generate/structured_prompt.md
POST https://api.doitong.ru/v1/run/bria/fibo-lite/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"
}
Om svarsstatusen är "queued" eller "running" ska du polla GET https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20 tills den är "succeeded"; filerna finns i outputs[].url. POST https://api.doitong.ru/v1/quote/bria/fibo-lite/generate/structured_prompt med samma body returnerar det exakta priset före körningen.
Den här begäran: 0,008 $ 8 API-krediter · ≈ 0,86 ₽ Kör den på den här sidan
Din nya API-nyckel. Den visas bara nu och finns redan i koden och i API-nyckelfältet nedan. Håll den hemlig: lägg aldrig in den i kod som körs i en webbläsare.
Ditt första resultat visas här
Skapa en begäran nedan och kör den med din API-nyckel. Utdata kopieras till vår lagring och sparas för alltid eller 7 dagar kostnadsfritt.
Skapa en begäran
Kontrollerna genereras från modellschemat. Koden och priset uppdateras när du ändrar dem.
/run/bria/fibo-lite/generate/structured_prompt?wait=20
pris → 0,008 $
# 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-lite/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.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-lite/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.ru/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-lite/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-lite/generate/structured_prompt",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
},
"wait_seconds": 20
}
}
}
Kör den här begäran
Din nyckel stannar i den här webbläsaren: den skickas endast till Doitong API och sparas endast i localStorage om du markerar Kom ihåg. Hämta en API-nyckel
Om Fibo Lite · Structured Prompt
Returnerar en strukturerad beskrivning för användning med Fibo Lite i stället för en bild. Indata är `prompt`, en befintlig `structured_prompt` eller en `image_url`, samt `seed`. JSON-utdata omfattar estetik, konstnärlig stil, bakgrundsmiljö, belysning, objekt, fotografiska egenskaper, motivets känslor och textrenderingar.
Parametrar
Skicka antingen det kanoniska namnet eller det inbyggda namnet, inte båda. Kanoniska namn
promptvalfritt
structured_promptvalfritt
structured_prompt.short_descriptionobligatoriskt
structured_prompt.objectsobligatoriskt
structured_prompt.objects[].descriptionobligatoriskt
structured_prompt.objects[].locationobligatoriskt
structured_prompt.objects[].relationshipobligatoriskt
structured_prompt.objects[].relative_sizevalfritt
structured_prompt.objects[].shape_and_colorvalfritt
structured_prompt.objects[].texturevalfritt
structured_prompt.objects[].appearance_detailsvalfritt
structured_prompt.objects[].number_of_objectsvalfritt
structured_prompt.objects[].posevalfritt
structured_prompt.objects[].expressionvalfritt
structured_prompt.objects[].clothingvalfritt
structured_prompt.objects[].actionvalfritt
structured_prompt.objects[].gendervalfritt
structured_prompt.objects[].skin_tone_and_texturevalfritt
structured_prompt.objects[].orientationvalfritt
structured_prompt.background_settingobligatoriskt
structured_prompt.lightingobligatoriskt
structured_prompt.lighting.conditionsobligatoriskt
structured_prompt.lighting.directionobligatoriskt
structured_prompt.lighting.shadowsvalfritt
structured_prompt.aestheticsobligatoriskt
structured_prompt.aesthetics.compositionobligatoriskt
structured_prompt.aesthetics.color_schemeobligatoriskt
structured_prompt.aesthetics.mood_atmosphereobligatoriskt
structured_prompt.aesthetics.aesthetic_scoreobligatoriskt
structured_prompt.aesthetics.preference_scoreobligatoriskt
structured_prompt.photographic_characteristicsvalfritt
structured_prompt.photographic_characteristics.depth_of_fieldobligatoriskt
structured_prompt.photographic_characteristics.focusobligatoriskt
structured_prompt.photographic_characteristics.camera_angleobligatoriskt
structured_prompt.photographic_characteristics.lens_focal_lengthobligatoriskt
structured_prompt.style_mediumvalfritt
structured_prompt.text_rendervalfritt
structured_prompt.text_render[].textobligatoriskt
structured_prompt.text_render[].locationobligatoriskt
structured_prompt.text_render[].sizeobligatoriskt
structured_prompt.text_render[].colorobligatoriskt
structured_prompt.text_render[].fontobligatoriskt
structured_prompt.text_render[].appearance_detailsvalfritt
structured_prompt.contextobligatoriskt
structured_prompt.artistic_styleobligatoriskt
structured_prompt.subject_emotionsvalfritt
image_urlvalfritt
image
seedvalfritt
Filparametrar tar emot en offentlig https://-URL, en data:-URI på upp till 10 MB eller file_url från en uppladdning. Filer
Resultat
{
"id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
"object": "request",
"model": "bria/fibo-lite/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": 8,
"usd": "0.008",
"charged": 8,
"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": [
{
"text": "string",
"location": "string",
"size": "string",
"color": "string",
"font": "string",
"appearance_details": "string"
}
],
"context": "string",
"artistic_style": "string",
"subject_emotions": "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"
}
}
Resultatets fält
- short_description
- stringKort översikt över vad bilden innehåller, begränsad till 200 ord.
- 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}Lista över framträdande objekt i förgrunden eller mellanplanet.
- background_setting
- stringBeskrivning av scenen som helhet: var den utspelar sig, dess omgivningar eller bakgrund samt eventuella bakgrundsdetaljer som är värda att notera.
- lighting
- object {conditions, direction, shadows}Information som beskriver belysningen.
- aesthetics
- object {composition, color_scheme, mood_atmosphere, aesthetic_score, preference_score}Information som beskriver bildens estetik.
- photographic_characteristics
- object {depth_of_field, focus, camera_angle, lens_focal_length} | nullInformation som beskriver de fotografiska egenskaperna.
- style_medium
- string | nullKonstnärligt medium eller konstnärlig stil.
- text_render
- array of object {text, location, size, color, font, appearance_details} | nullLista över textelement som återges i bilden.
- context
- stringYtterligare kontext som underlättar tolkningen av bilden.
- artistic_style
- stringSpecifika konstnärliga egenskaper, uttryckta med högst 3 ord.
- subject_emotions
- string | nullExplicit beskrivning av motivens synliga uttryck eller känslor.
Andra Fibo Lite-varianter
Fler modeller: LLM
För AI-agenter: den här sidan som Markdown finns på https://doitong.com/sv/developers/models/bria/fibo-lite/generate/structured_prompt.md. Alla modeller och guider: https://doitong.com/developers/llms.txt