Nodes/BRIA AI API nodes/FIBO - Generate Structured Prompt
ComfyUI Node

FIBO - Generate Structured Prompt

Get the JSON before the image — FIBO Generate Structured Prompt is the auditable half of the pipeline

By Bria-AI·Created 2 years ago·Updated 3 months ago· 95
FIBO - Generate Structured Prompt
  • images
  • structured_prompt
  • seed
api_tokenBRIA_API_TOKEN
prompt
structured_prompt
seed123456

Every FIBO generation is secretly a two-step process: your text gets translated into a structured JSON prompt, and then the model renders from that JSON. Most people never see the middle step - they just feed text into the Generate node. FIBO - Generate Structured Prompt pulls that middle step out and gives it to you directly. It outputs JSON, not pixels. No image is generated, no generation credits are spent on the actual render.

Why would you want the half-finished product? Because the JSON is where the control lives. The README calls this the "human-in-the-loop" workflow: you can inspect what the model thinks you asked for, edit it, version-control it, or replay it later. This node uses the full bridge (Gemini 2.5 Flash) for the most detailed, faithful translation - the - Lite sibling uses BRIA's open-source FIBO-VLM instead, trading a little translation quality for speed and cost.

How it works

Your prompt - and optionally images for image-conditioned translation, or a structured_prompt you want updated with new instructions - is sent to BRIA's structured-prompt endpoint. The response is the JSON that a FIBO generation node would consume. You get it back as a STRING, plus the seed used. That's it. One round trip, no image.

The inputs that matter

  • api_token and prompt - required. Real key, not the BRIA_API_TOKEN placeholder.
  • images - optional; describe an image and the bridge produces a structured prompt faithful to it (this is how you turn a reference into structured control).
  • structured_prompt - optional; pass in an existing JSON plus a new text instruction and you get back an updated JSON. That's the "refine the instruction, not the image" flow.
  • seed - a string, default 123456.

Outputs are structured_prompt (STRING) and seed. Feed the string into FIBO - Generate Image's structured_prompt input - or into a Show Text node, or a text file, or a version-control repo.

Install

Standard pack install:

cd path_to_comfyui/custom_nodes
git clone https://github.com/Bria-AI/ComfyUI-BRIA-API.git

or ComfyUI Manager → search "BRIA API" → restart. No models, no requirements file.

When this earns its keep

If you're casually generating, skip it - the Generate node translates internally and you never miss the JSON. This node is for anyone who's been burned by a chain of edits drifting (that's the classic failure the KB's inpainting essay documents for whole-image edit models) or who needs reproducible, auditable prompts for a team or a client. There's real power in the workflow: generate structured prompt once, review it, then reuse the same JSON across a batch with different seeds - the exact reproducibility story that made the community warm to FIBO in the first place.

CategoryAPI Nodes

Inputs (5)

NameTypeDefaultDescription
api_tokenSTRINGBRIA_API_TOKEN
promptSTRING
structured_promptoptSTRING
imagesoptIMAGE
seedoptSTRING123456

Outputs (2)

NameTypeDescription
structured_promptSTRING
seedSTRING