FIBO is the first open-source, JSON-native text-to-image model trained exclusively on long structured captions.
Fibo sets a new standard for controllability, predictability, and disentanglement.
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.
- 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.
- 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.
- 2026-11-22: Add support for Fibo 2.0 Dev: one model for text-to-image and image editing (masked and multi-reference). It is now the default model; use
--fibo1for the original FIBO. See Fibo 2.0 🎉 - 2025-11-11: Technical report is now available here 🎉
- 2025-11-11: Fine-tuning code is now available here 🎉
- 2025-11-10: Add support for TeaCache to speed up generation by 3x with minimal quality loss 🏎️
FIBO is available everywhere you build, either as source-code and weights, ComfyUI nodes or API endpoints.
API Endpoint:
ComfyUI:
Source-Code & Weights
- The model is open source for non-commercial use with this license
- For commercial use Click here.
-
Clone the repo
git clone https://github.com/Bria-AI/FIBO.git cd FIBO -
Login to Hugging Face:
Request model access at this link
hf auth login -
Install
uv:Instructions taken from here.
For linux systems this should be:
curl -LsSf https://astral.sh/uv/install.sh | sh source $HOME/.local/bin/env -
Install the dependencies:
uv sync -
Activate your
.venvand set the Python env:source .venv/bin/activate export PYTHONPATH=${PYTHONPATH}:${PWD}
This project uses a Makefile to streamline common development tasks.
To install dependencies and set up pre-commit hooks, run:
make installThe following commands are also available:
make lint: Run linters to check for code quality.make format: Format the code according to the project's style guidelines.make check: Run both linters and formatters.make clean: Remove the virtual environment.make help: Display a list of all available commands.
To use Gemini as the Vision-Language Model (VLM) backend for FIBO, some additional setup is needed.
-
Obtain a Gemini API Key
Sign up for the Google AI Studio (Gemini) and create an API key. -
Set the API Key as an Environment Variable
Store your Gemini API key in theGOOGLE_API_KEYenvironment variable:export GOOGLE_API_KEY=your_google_api_keyYou can add the above line to your
.bashrc,.zshrc, or similar shell profile for persistence.
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 use --model-mode local to use the local VLM instead (FIBO-VLM):
python generate.py --fibo1 --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." --seed 1 --output examples/outputs/generate.pngTo use the local VLM (FIBO-VLM) instead of Gemini, add --model-mode local to the command.
python generate.py --fibo1 --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." --seed 1 --output examples/outputs/generate.png --model-mode localFIBO supports iterative generation. Given a structured prompt and an instruction, FIBO refines the output.
python generate.py --fibo1 --structured-prompt examples/outputs/generate.json --prompt "make the owl brown" --output examples/outputs/refine.png Make owl brown |
Turn owl into a lemur |
Add jungle vegetation |
Add sunlight |
Start from an image as inspiration and let Fibo regenerate a variation of it or merge your creative intent into the next generation
python generate.py --fibo1 --image-path assets/original.png --output examples/outputs/inspire.pngpython generate.py --fibo1 --image-path assets/original.png --prompt "Make futuristic" --output examples/outputs/inspire-prompt.png original image |
No prompt |
Make futuristic |
Enable TeaCache to speed up generation by 3x with minimal quality loss:
python generate.py --fibo1 --prompt "your prompt" --enable-teacacheAdjust the threshold for speed/quality tradeoff (default 1.0, recommended 0.6-1.0):
python generate.py --fibo1 --prompt "your prompt" --enable-teacache --teacache-threshold 0.8 Without TeaCache (baseline) |
With TeaCache (3x faster) |
see the examples in the examples directory for more details.
Fibo 2.0 Dev unifies image editing and image generation in a single 8B model, with better text rendering, texture and anatomy. It is the default model of generate.py; add --fibo1 to any command to use the original FIBO instead. Request access to the weights at this link first.
Fibo 2.0's structured prompts are written by bria-vgl on Gemini, so set GEMINI_API_KEY (or GOOGLE_API_KEY). Use --vgl-llm to pick another litellm model id. The local FIBO-VLM (--model-mode local) and TeaCache are FIBO-only and need --fibo1.
python generate.py --prompt "An origami whale swimming through paper clouds" --resolution "1424 800" --seed 0 --output examples/outputs/fibo2_generate.pngpython generate.py --structured-prompt examples/outputs/fibo2_generate.json --prompt "make the whale blue" --output examples/outputs/fibo2_refine.pngpython generate.py --image-path examples/outputs/fibo2_generate.png --prompt "the same scene, the clouds are orange" --output examples/outputs/fibo2_inspire.pngUse multiples of 16 at about one megapixel for --resolution, e.g. 1024 1024 (default), 1424 800 (16:9) or 1248 832 (3:2).
Pass the image to edit with --edit-image and the instruction with --prompt. Everything you didn't ask to change is preserved. The output size defaults to about one megapixel at the aspect ratio of the first image.
python generate.py --edit-image photo.jpg --prompt "replace the jacket with a red leather one" --output edited.pngMasked edit: white marks the region to regenerate; everything else is kept.
python generate.py --edit-image suitcase.png --mask-path suitcase_mask.png --prompt "replace the suitcase with a vintage brown leather one" --output edited.pngMultiple references: repeat --edit-image for up to 4 images, referred to in order as <image_1>, <image_2> and so on.
python generate.py --edit-image person.png --edit-image dress.png --prompt "dress the person in <image_1> in the dress from <image_2>" --output result.pngIf you have the structured prompt an image was generated from, pass it with --structured-prompt so the edit keeps everything the instruction doesn't change.
Five optional photographic looks for text-to-image: boring_reality, kodak_film, hard_flash, hazy_dreamy and lens_distortion. Each uses its own prompts and negative prompt.
python generate.py --prompt "A dog running on a beach" --style kodak_film --output kodak.pngFibo 2.0 Dev is the full, non-distilled base model: keep the defaults of 50 steps and guidance scale 5.0. LoRAs trained for Fibo 2.0 load with --lora-path.
FIBO is an 8B-parameter DiT-based, flow-matching text-to-image model trained exclusively on licensed data and on >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.
FIBO was trained on curated set of image–caption pairs selected from ~1B image dataset 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.
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.
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 hr@bria.ai
We kindly encourage citation of our work if you find it useful.
@misc{gutflaish2025generating,
title = {Generating an Image From 1,000 Words: Enhancing Text-to-Image With Structured Captions},
author = {Gutflaish, Eyal and Kachlon, Eliran and Zisman, Hezi and Hacham, Tal and Sarid, Nimrod and Visheratin, Alexander and Huberman, Saar and Davidi, Gal and Bukchin, Guy and Goldberg, Kfir and Mokady, Ron},
year = {2025},
eprint = {2511.06876},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
doi = {10.48550/arXiv.2511.06876},
url = {https://arxiv.org/abs/2511.06876}
}🤗 Like FIBO on Hugging Face to support responsible generative AI!















