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.com/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.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-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.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-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/ur/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-lite/generate/structured_prompt",
"input": {
"prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
}
Doitong API کے ذریعے Fibo Lite · Structured Prompt ماڈل (bria/fibo-lite/generate/structured_prompt) کو کال کریں۔ ایجنٹس کے لیے دستاویزات: https://doitong.com/ur/developers/models/bria/fibo-lite/generate/structured_prompt.md
POST https://api.doitong.com/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.com/v1/requests/REQUEST_ID?wait=20 کو اس وقت تک پول کریں جب تک یہ "succeeded" نہ ہو جائے؛ فائلیں outputs[].url میں ہیں۔ رن سے پہلے درست قیمت حاصل کرنے کے لیے اسی باڈی کے ساتھ POST https://api.doitong.com/v1/quote/bria/fibo-lite/generate/structured_prompt کریں۔
یہ درخواست: $0.008 8 API کریڈٹس اس صفحے پر چلائیں
آپ کی نئی 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.com/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.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-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.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-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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
"cancel": "https://api.doitong.com/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/ur/developers/models/bria/fibo-lite/generate/structured_prompt.md. تمام ماڈلز اور گائیڈز: https://doitong.com/developers/llms.txt