Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
FIBO is the first open-source, JSON-native text-to-image model trained exclusively on long structred captions.
Fibo sets a new standard for controllability, predictability, and disentanglement.
š What's FIBO?
Most text-to-image models excel at imaginationābut not control.
FIBO
is built for professional workflows, not casual use. Trained on
structured JSON captions up to 1,000+ words
, FIBO enables precise, reproducible control over lighting, composition, color, and camera settings. The structured captions foster native disentanglement, allowing targeted, iterative refinement without prompt drift. With only
8B parameters
, FIBO delivers high image quality, strong prompt adherence, and professional-grade controlā
trained exclusively on licensed data
.
š Key Features
VLM guided JSON-native prompting
: Incorporates any VLM to transform short prompts into structured schemas with 1,000+ words (lighting, camera, composition, DoF).
Iterative controlled generation
: generate images from short prompts or keep refining and get inspiration from detailed JSONs and input images
Disentangled control
: tweak a single attribute (e.g., camera angle) without breaking the scene.
Enterprise-grade
: 100% licensed data; governance, repeatability, and legal clarity.
Strong prompt adherence
: high alignment on PRISM-style evaluations.
Built for production
: API endpoints (Bria Platform, Fal.ai, Replicate), ComfyUI nodes, and local inference.
šØ Work with FIBO in Three Simple Modes
Generate:
Start with a quick idea. FIBOās language model expands your short prompt into a rich, structured JSON prompt, then generates the image.
You get both the image and the expanded prompt.
Refine:
Continue from a detailed structured prompt add a short instruction - for example, ābacklit,ā ā85 mm,ā or āwarmer skin tones.ā
FIBO updates
only
the requested attributes, re-generates the image, and returns the refined prompt alongside it.
Inspire:
Provide an image instead of text. FIBOās visionālanguage model extracts a detailed, structured prompt, blends it with your creative intent, and produces related imagesāideal for inspiration without overreliance on the original.
FIBO uses a VLM that transforms short prompts into detailed structured prompts that are used to generate images. You can use the following code to generate images using Gemini via the Google API - **requires a GOOGLE_API_KEY**, or uncomment the relevant section to run a local VLM instead (FIBO-VLM):
import json
import os
import torch
from diffusers import BriaFiboPipeline
from diffusers.modular_pipelines import ModularPipeline
# -------------------------------# Load the VLM pipeline# -------------------------------
torch.set_grad_enabled(False)
# Using Gemini API, requires GOOGLE_API_KEY environment variableassert os.getenv("GOOGLE_API_KEY") isnotNone, "GOOGLE_API_KEY environment variable is not set"
vlm_pipe = ModularPipeline.from_pretrained("briaai/FIBO-gemini-prompt-to-JSON", trust_remote_code=True)
# Using local VLM, uncomment to run# vlm_pipe = ModularPipeline.from_pretrained("briaai/FIBO-VLM-prompt-to-JSON", trust_remote_code=True)# Load the FIBO pipeline
pipe = BriaFiboPipeline.from_pretrained(
"briaai/FIBO",
torch_dtype=torch.bfloat16,
)
pipe.to("cuda")
# pipe.enable_model_cpu_offload() # uncomment if you're getting CUDA OOM errors# -------------------------------# Run Prompt to JSON# -------------------------------# Create a prompt to generate an initial image
output = vlm_pipe(
prompt="A hyper-detailed, ultra-fluffy owl sitting in the trees at night, looking directly at the camera with wide, adorable, expressive eyes. Its feathers are soft and voluminous, catching the cool moonlight with subtle silver highlights. The owl's gaze is curious and full of charm, giving it a whimsical, storybook-like personality."
)
json_prompt_generate = output.values["json_prompt"]
defget_default_negative_prompt(existing_json: dict) -> str:
negative_prompt = ""
style_medium = existing_json.get("style_medium", "").lower()
if style_medium in ["photograph", "photography", "photo"]:
negative_prompt = """{'style_medium':'digital illustration','artistic_style':'non-realistic'}"""return negative_prompt
negative_prompt = get_default_negative_prompt(json.loads(json_prompt_generate))
# -------------------------------# Run Image Generation# -------------------------------# Generate the image from the structured json prompt
results_generate = pipe(
prompt=json_prompt_generate, num_inference_steps=50, guidance_scale=5, negative_prompt=negative_prompt
)
results_generate.images[0].save("image_generate.png")
withopen("image_generate_json_prompt.json", "w") as f:
f.write(json_prompt_generate)
Refine
FIBO supports iterative generation. Given a structured prompt and an instruction, FIBO refines the output.
Set the API Key as an Environment Variable
Store your Gemini API key in the
GEMINI_API_KEY
environment variable:
export GEMINI_API_KEY=your_gemini_api_key
You can add the above line to your
.bashrc
,
.zshrc
, or similar shell profile for persistence.
see the examples in the
examples
directory for more details.
š§ Training and Architecture
FIBO
is an 8B-parameter DiT-based, flow-matching text-to-image model trained
exclusively on licensed data
and on
>100M long, structured JSON captions
(~1,000 words each), enabling strong prompt adherence and professional-grade control. It uses
SmolLM3-3B
as the text encoder with a novel
DimFusion
conditioning architecture for efficient long-caption training, and
Wan 2.2
as the VAE. The structured supervision promotes native disentanglement for targeted, iterative refinement without prompt drift, while VLM-assisted prompting expands short user intents, fills in missing details, and extracts/edits structured prompts from images using our fine-tuned
Qwen-2.5
-based VLM or
Gemini 2.5 Flash
. For reproducibility, we provide the assistant system prompt and the structured-prompt JSON schema across the āGenerate,ā āRefine,ā and āInspireā modes.
Data Distribution
FIBO was trained on over 100M licensed imageācaption pairs as shown in the dataset distribution. All assets are vetted for commercial use, attribution traceability, and regional compliance under GDPR and the
EU AI Act
. This broad and balanced dataset ensures FIBOās ability to generalize across a wide range of visual domains, from realistic human imagery to graphic design and product visualization, while maintaining full licensing compliance.
Evaluation
PRISM Benchmark Model Comparison
Using a licensed-data subset of PRISM-Bench, we evaluate imageātext alignment and aesthetics.
FIBO
outperforms comparable open-source baselines, suggesting strong prompt adherence, controllability and aesthetics from structured-caption training.
More Samples
Generate
Inspire & Refine
If you have questions about this repository, feedback to share, or want to contribute directly, we welcome your issues and pull requests on GitHub. Your contributions help make FIBO better for everyone.
If you're passionate about fundamental research, we're hiring full-time employees (FTEs) and research interns. Don't wait - reach out to us at [email protected]
ā¤ļø FIBO model card and ā Star FIBO on GitHub to join the movement for responsible generative AI!
FIBO huggingface.co is an AI model on huggingface.co that provides FIBO's model effect (), which can be used instantly with this briaai FIBO model. huggingface.co supports a free trial of the FIBO model, and also provides paid use of the FIBO. Support call FIBO model through api, including Node.js, Python, http.
FIBO huggingface.co is an online trial and call api platform, which integrates FIBO's modeling effects, including api services, and provides a free online trial of FIBO, you can try FIBO online for free by clicking the link below.
FIBO is an open source model from GitHub that offers a free installation service, and any user can find FIBO on GitHub to install. At the same time, huggingface.co provides the effect of FIBO install, users can directly use FIBO installed effect in huggingface.co for debugging and trial. It also supports api for free installation.