Fibo Lite · Structured Prompt
इंटीग्रेट करें
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/hi/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"
}
}
Fibo Lite · Structured Prompt मॉडल (bria/fibo-lite/generate/structured_prompt) को Doitong API के ज़रिए कॉल करें। एजेंट के लिए दस्तावेज़: https://doitong.com/hi/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"
}
यदि रिस्पॉन्स स्टेटस "queued" या "running" है, तो GET https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20 को तब तक पोल करें जब तक यह "succeeded" न हो जाए; फ़ाइलें outputs[].url में हैं। उसी बॉडी के साथ POST https://api.doitong.ru/v1/quote/bria/fibo-lite/generate/structured_prompt चलाने से रन से पहले सटीक कीमत मिलती है।
यह अनुरोध: $0.008 8 API क्रेडिट · ≈ ₽0.86 इसे इस पेज पर चलाएँ
आपकी नई API कुंजी। यह केवल अभी दिखाया गया है और कोड तथा नीचे दिए गए API कुंजी फ़ील्ड में पहले से मौजूद है। इसे गुप्त रखें: इसे कभी भी ब्राउज़र में चलने वाले कोड में न डालें।
आपका पहला परिणाम यहाँ आएगा
नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।
अनुरोध बनाएँ
कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।
/run/bria/fibo-lite/generate/structured_prompt?wait=20
कोटेशन → $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
}
}
}
यह अनुरोध चलाएँ
आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें
Fibo Lite · Structured Prompt के बारे में
इमेज के बजाय Fibo Lite के साथ उपयोग के लिए संरचित विवरण लौटाता है। इनपुट में `prompt`, मौजूदा `structured_prompt` या `image_url`, साथ ही `seed` होता है। JSON आउटपुट में सौंदर्यगत विशेषताएँ, कलात्मक स्टाइल, बैकग्राउंड सेटिंग, लाइटिंग, ऑब्जेक्ट, फ़ोटोग्राफ़िक विशेषताएँ, विषय की भावनाएँ और रेंडर किए जाने वाले टेक्स्ट शामिल होते हैं।
पैरामीटर
कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम
promptवैकल्पिक
structured_promptवैकल्पिक
structured_prompt.short_descriptionआवश्यक
structured_prompt.objectsआवश्यक
structured_prompt.objects[].descriptionआवश्यक
structured_prompt.objects[].locationआवश्यक
structured_prompt.objects[].relationshipआवश्यक
structured_prompt.objects[].relative_sizeवैकल्पिक
structured_prompt.objects[].shape_and_colorवैकल्पिक
structured_prompt.objects[].textureवैकल्पिक
structured_prompt.objects[].appearance_detailsवैकल्पिक
structured_prompt.objects[].number_of_objectsवैकल्पिक
structured_prompt.objects[].poseवैकल्पिक
structured_prompt.objects[].expressionवैकल्पिक
structured_prompt.objects[].clothingवैकल्पिक
structured_prompt.objects[].actionवैकल्पिक
structured_prompt.objects[].genderवैकल्पिक
structured_prompt.objects[].skin_tone_and_textureवैकल्पिक
structured_prompt.objects[].orientationवैकल्पिक
structured_prompt.background_settingआवश्यक
structured_prompt.lightingआवश्यक
structured_prompt.lighting.conditionsआवश्यक
structured_prompt.lighting.directionआवश्यक
structured_prompt.lighting.shadowsवैकल्पिक
structured_prompt.aestheticsआवश्यक
structured_prompt.aesthetics.compositionआवश्यक
structured_prompt.aesthetics.color_schemeआवश्यक
structured_prompt.aesthetics.mood_atmosphereआवश्यक
structured_prompt.aesthetics.aesthetic_scoreआवश्यक
structured_prompt.aesthetics.preference_scoreआवश्यक
structured_prompt.photographic_characteristicsवैकल्पिक
structured_prompt.photographic_characteristics.depth_of_fieldआवश्यक
structured_prompt.photographic_characteristics.focusआवश्यक
structured_prompt.photographic_characteristics.camera_angleआवश्यक
structured_prompt.photographic_characteristics.lens_focal_lengthआवश्यक
structured_prompt.style_mediumवैकल्पिक
structured_prompt.text_renderवैकल्पिक
structured_prompt.text_render[].textआवश्यक
structured_prompt.text_render[].locationआवश्यक
structured_prompt.text_render[].sizeआवश्यक
structured_prompt.text_render[].colorआवश्यक
structured_prompt.text_render[].fontआवश्यक
structured_prompt.text_render[].appearance_detailsवैकल्पिक
structured_prompt.contextआवश्यक
structured_prompt.artistic_styleआवश्यक
structured_prompt.subject_emotionsवैकल्पिक
image_urlवैकल्पिक
image
seedवैकल्पिक
फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें
आउटपुट
{
"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"
}
}
आउटपुट के फ़ील्ड
- short_description
- stringइमेज में मौजूद सामग्री का संक्षिप्त अवलोकन, अधिकतम 200 शब्दों तक।
- 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}अग्रभूमि या मध्यभूमि में मौजूद उल्लेखनीय ऑब्जेक्ट की सूची।
- background_setting
- stringपूरे दृश्य का वर्णन: यह कहाँ घटित होता है, इसके आसपास का वातावरण या पृष्ठभूमि, और ध्यान देने योग्य कोई भी बैकग्राउंड विशेषताएँ।
- lighting
- object {conditions, direction, shadows}प्रकाश व्यवस्था का वर्णन करने वाली जानकारी।
- aesthetics
- object {composition, color_scheme, mood_atmosphere, aesthetic_score, preference_score}इमेज के सौंदर्य संबंधी गुणों का वर्णन करने वाली जानकारी।
- photographic_characteristics
- object {depth_of_field, focus, camera_angle, lens_focal_length} | nullफ़ोटोग्राफ़िक गुणों का वर्णन करने वाली जानकारी।
- style_medium
- string | nullउपयोग किया गया कलात्मक माध्यम या शैली।
- text_render
- array of object {text, location, size, color, font, appearance_details} | nullइमेज के भीतर रेंडर किए गए टेक्स्ट तत्वों की सूची।
- context
- stringइमेज की व्याख्या में सहायता करने वाला अतिरिक्त संदर्भ।
- artistic_style
- stringविशिष्ट कलात्मक विशेषताएँ, अधिकतम 3 शब्दों में व्यक्त।
- subject_emotions
- string | nullविषयों की दिखाई देने वाली अभिव्यक्तियों या भावनाओं का स्पष्ट वर्णन।
अन्य Fibo Lite वेरिएंट
और मॉडल: LLM
AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/bria/fibo-lite/generate/structured_prompt.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt