yandex

Bria Fibo Prompt API

starstarstarstarstar

5/5

Генерация JSON параметра structured_prompt из текстового брифа для Bria Fibo

ID для подключения по API : bria-fibo-prompt

Средняя скорость генерации ~ 14.53 сек
Дата выхода: 01/12/2025

Средняя

Запустить через API

Выберите язык:

Как работать с Bria Fibo Prompt через API?

Получение API ключа

Для начала получите ваш API ключ в личном кабинете, если ещё не сделали этого.

Это ваш API-ключ с помощью, которого вы можете генерировать. Не сообщайте его никому.

Запрос на выполнение задачи

Теперь необходимо создать задачу на генерацию. Результат вы можете получать по-разному, можно по системе Long-Pooling, либо вы можете задать callback_url и мы отправим вам результат по готовности. Подробнее с тем, как использовать эти способы можете ознакомиться в документации. В данном примере мы рассмотрим способ с получением результата на callback_url.

В этом запросе указаны лишь обязательные параметры, если вам необходимы дополнительные параметры, то можете ознакомится с ними здесь

Пример ответа

Получение результата

На указанный в первом запросе callback_url придёт следующий ответ.

Ознакомиться с другими способами получения результата можете в документации

Параметры для генерации

callback_urlurl

Это URL, на который будет отправлен ответ от нейросети.

promptstring

Обязательно

Промпт.

Значение по умолчанию : DND свинобот сражается с человеком на мечах, реалистично

image_urlurl_or_file

Входное изображение.

structured_promptarray

Структурированный промт.

Значение по умолчанию : { "structured_prompt": { "short_description": "A dynamic and realistic photograph captures the intense confrontation between a 'DND pigbot' and a human warrior in a dimly lit, ancient stone dungeon. The pigbot, a formidable mechanical boar-like creature, lunges forward, its metallic tusks gleaming, while the human, a male with a determined expression, parries with his left sword and prepares to strike with his right, both swords glinting from a hidden light source.", "objects": [ { "description": "A 'DND pigbot,' a large, imposing mechanical creature resembling a wild boar, constructed from dark, weathered metal panels. Its eyes glow with an internal red light, and sharp, metallic tusks protrude from its snout.", "location": "center-left foreground", "relationship": "In direct combat with the human warrior.", "relative_size": "large within frame", "shape_and_color": "Bulky, boar-like shape; dark, oxidized metallic colors with red accents.", "texture": "Rough, scratched, and weathered metallic surfaces.", "appearance_details": "Visible joints and pistons suggest a complex internal mechanism. Scratches and dents indicate previous battles.", "action": "Lunging forward with its head lowered, preparing to gore the human.", "orientation": "Facing right, slightly angled towards the viewer." }, { "description": "A male human warrior, mid-twenties, with short, dark brown hair and a muscular build, clad in practical, worn leather armor over a dark tunic. His face is grimy, showing signs of exertion and focus.", "location": "center-right foreground", "relationship": "Engaged in a fierce sword fight with the pigbot.", "relative_size": "large within frame", "shape_and_color": "Athletic human form; earthy tones of leather and fabric.", "texture": "Worn leather, coarse fabric, slightly sweaty skin.", "appearance_details": "Scars are visible on his exposed left arm. His armor bears minor scuffs and dirt.", "pose": "Left arm extended, holding a sword defensively to parry, right arm drawn back, preparing to thrust a second sword.", "expression": "Intense concentration and determination, gritting his teeth.", "clothing": "Dark, practical leather armor with some metal studs, over a dark, long-sleeved tunic, and dark trousers.", "action": "Actively parrying with his left sword while preparing an offensive strike with his right.", "gender": "male", "skin_tone_and_texture": "Olive skin tone, slightly glistening with sweat.", "orientation": "Facing left, body twisted in a dynamic combat stance." }, { "description": "A straight, double-edged longsword, crafted from polished steel with a simple crossguard and a dark leather-wrapped hilt.", "location": "center, held in the human's left hand", "relationship": "Being used by the human to defend against the pigbot's attack.", "relative_size": "medium", "shape_and_color": "Long, slender blade; metallic silver with a dark hilt.", "texture": "Smooth, polished steel blade; textured leather hilt.", "appearance_details": "A faint sheen reflects the ambient light.", "orientation": "Held horizontally, blade angled to deflect the pigbot." }, { "description": "A second straight, double-edged longsword, identical to the first, also crafted from polished steel with a simple crossguard and a dark leather-wrapped hilt.", "location": "center-right, held in the human's right hand", "relationship": "Being wielded by the human for an impending counter-attack against the pigbot.", "relative_size": "medium", "shape_and_color": "Long, slender blade; metallic silver with a dark hilt.", "texture": "Smooth, polished steel blade; textured leather hilt.", "appearance_details": "A faint sheen reflects the ambient light.", "orientation": "Held vertically, tip pointing towards the pigbot." } ], "background_setting": "The scene unfolds within a crumbling, ancient dungeon. Rough-hewn stone blocks form the walls, floor, and ceiling, showing signs of extreme age and neglect, with moss and dampness clinging to surfaces. Shadows obscure most of the background, hinting at further dark passages and forgotten secrets.", "lighting": { "conditions": "Dim, dramatic, and localized.", "direction": "Side-lit from an unseen magical or artificial light source to the left, creating harsh contrasts.", "shadows": "Sharp, deep shadows are cast behind the figures and into the corners of the dungeon, enhancing the sense of danger and mystery." }, "aesthetics": { "composition": "Dynamic medium shot, focusing on the combatants with a diagonal line created by their action, adhering to the rule of thirds for balance.", "color_scheme": "Desaturated, cool tones of grey and muted browns for the environment, contrasting with the warm metallic gleam of the pigbot's eyes and the swords.", "mood_atmosphere": "Intense, dangerous, action-packed, and gritty.", "preference_score": "very high", "aesthetic_score": "very high" }, "photographic_characteristics": { "depth_of_field": "Shallow, with the immediate foreground and background slightly blurred to emphasize the fighting figures.", "focus": "Sharp focus on both the human warrior and the pigbot.", "camera_angle": "Slightly low angle, looking up at the combatants, making them appear more formidable.", "lens_focal_length": "Standard lens (e.g., 50mm)" }, "style_medium": "photograph", "context": "This is a concept for a realistic fantasy action scene, potentially for a game cinematic, book cover, or promotional art for a tabletop RPG.", "artistic_style": "realistic" } }

seedinteger

Случайное зерно для генерации.