POST
javascript
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); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


promptstr *

Text description of the image; FIBO expands it into a structured prompt. Describe subject, lighting, camera, and mood for best results.


image_urlsstr ( default: 1 )

Optional reference image URL (single JPEG, PNG or WEBP) to inspire generation. Use for Inspire mode; omit for pure text-to-image.


structured_promptstr ( default: 1 )

Optional JSON structured prompt from a prior response for exact recreation or refinement. Cannot be combined with a reference image.


resolutionenum:str ( default: 4MP )

Output resolution, one of 1MP or 4MP. Use 4MP for fine photoreal detail (adds ~30s); 1MP for speed.

Allowed values:


aspect_ratioenum:str ( default: 3:4 )

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:


style_idenum:str ( default: 1 )

Optional style preset; only photoreal is supported. Applies to prompt-based generation only; omit to use your prompt as-is.

Allowed values:


seedint ( default: 123456 )

Integer seed from 0 to 2147483647 for deterministic output. Fix it with a structured prompt to recreate an image exactly.


output_typeenum:str ( default: png )

Output image format, one of png or jpeg. Use png for quality, jpeg for smaller files.

Allowed values:


ip_signalbool ( default: 1 )

If true, returns a warning when the prompt may contain IP-protected content. Leave false unless auditing prompts.


prompt_content_moderationbool ( default: true )

If true, rejects (422) prompts that fail content moderation. Keep true for production safety.


visual_input_content_moderationbool ( default: true )

If true, rejects (422) reference images that fail content moderation. Keep true for production safety.


visual_output_content_moderationbool ( default: true )

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: JSON-Native Text-to-Image Model

What is Bria FIBO 1.5?

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.

Key Features

  • JSON-native prompting: short prompts are expanded into structured captions up to 1,000+ words describing lighting, camera, composition, color, and depth of field.
  • Disentangled control: adjust a single attribute — camera angle, lighting, skin tone — without breaking the rest of the scene.
  • Three workflows: Generate from text, Inspire from a reference image, or Refine from a structured prompt plus a short instruction.
  • Flexible output: 1MP or 4MP resolution, nine aspect ratios, PNG or JPEG, and deterministic seeds.
  • Enterprise-safe: trained on 100% licensed data for governance and legal clarity.

Best Use Cases

  • Photorealistic portraits and product shots — in testing, a close-up fisherman portrait at 4MP rendered crisp skin texture, individual beard strands, sharp catchlights, and clean background bokeh.
  • Reproducible brand and campaign assets, where a fixed seed plus structured prompt must recreate an image exactly.
  • Agentic and automated pipelines that need programmatic, auditable control over every visual attribute.
  • Iterative refinement, adjusting cues like "backlit" or "85mm" without rewriting the whole prompt.

Prompt Tips and Output Quality

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.

FAQs

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.