1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/bria-fibo-generate";
const data = {
"prompt": "A photorealistic close-up portrait of an elderly fisherman with a weathered, deeply lined face and warm brown eyes, a salt-and-pepper beard flecked with fine sea spray, wearing a bright yellow oilskin raincoat, standing at a misty harbour at golden hour, soft natural rim light, ultra-detailed skin texture and pores, sharp catchlights, shot on an 85mm lens with shallow depth of field",
"resolution": "4MP",
"aspect_ratio": "3:4",
"seed": 123456,
"output_type": "png"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Text description of the image; FIBO expands it into a structured prompt. Describe subject, lighting, camera, and mood for best results.
Optional reference image URL (single JPEG, PNG or WEBP) to inspire generation. Use for Inspire mode; omit for pure text-to-image.
Optional JSON structured prompt from a prior response for exact recreation or refinement. Cannot be combined with a reference image.
Output resolution, one of 1MP or 4MP. Use 4MP for fine photoreal detail (adds ~30s); 1MP for speed.
Allowed values:
Image proportions, one of 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9. Use 3:4 or 4:5 for portraits, 16:9 for scenes.
Allowed values:
Optional style preset; only photoreal is supported. Applies to prompt-based generation only; omit to use your prompt as-is.
Allowed values:
Integer seed from 0 to 2147483647 for deterministic output. Fix it with a structured prompt to recreate an image exactly.
Output image format, one of png or jpeg. Use png for quality, jpeg for smaller files.
Allowed values:
If true, returns a warning when the prompt may contain IP-protected content. Leave false unless auditing prompts.
If true, rejects (422) prompts that fail content moderation. Keep true for production safety.
If true, rejects (422) reference images that fail content moderation. Keep true for production safety.
If true, rejects (422) generated images that fail content moderation. Keep true for production safety.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Bria FIBO 1.5 is a text-to-image model that turns a short prompt into a rich, structured JSON prompt and then renders a photorealistic image from it. Built on an 8B-parameter DiT, flow-matching architecture and trained exclusively on licensed data, FIBO is designed for controllable, predictable, and commercially safe generation. Every request returns both the final image and the structured_prompt JSON it was built from, so you can inspect, refine, or recreate any result. That combination of photorealism and auditable control makes FIBO a strong fit for production and agentic image pipelines.
Write natural, descriptive prompts covering subject, lighting, camera, and mood; FIBO fills in the rest. Choose 4MP for maximum photoreal detail (adds roughly 30 seconds) and 3:4 or 4:5 aspect ratios for portraits. Keep a fixed seed alongside the returned structured prompt to reproduce a shot or fine-tune one attribute at a time. For a reference-guided look, pass a single image instead of, or alongside, your prompt.
Does FIBO return the prompt it used? Yes — every response includes the full structured_prompt JSON.
Can I use a reference image? Yes, pass a single JPEG, PNG, or WEBP to inspire generation. It cannot be combined with a structured prompt.
What resolutions are supported? 1MP for speed and 4MP for high detail.
Which aspect ratios are available? 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, and 16:9.
Is FIBO commercially safe? It is trained exclusively on licensed data for rights-clear, enterprise-grade use.