FIBO Generate 1.5

Text-to-Image • bria

bria/fibo-generate-1.5

  • Third-party

FIBO Generate creates images from a text prompt, a reference image, or both. Each result includes the seed and the structured JSON (VGL) prompt used to render it; send them back to recreate the image exactly or to refine it with a new prompt. Outputs are 1MP or 4MP in nine aspect ratios.

Model Info
Terms and License link ↗
More information link ↗
Pricing <ul><li>Per image$0.03</li></ul>

Usage

const response = await env.AI.run(
  'bria/fibo-generate-1.5',
  {
    prompt:
      'studio product photo of a matte black insulated travel mug on a white seamless background, soft diffused key light from the upper left, crisp edges',
    aspect_ratio: '1:1',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "bria/fibo-generate-1.5",
  "input": {
    "prompt": "studio product photo of a matte black insulated travel mug on a white seamless background, soft diffused key light from the upper left, crisp edges",
    "aspect_ratio": "1:1"
  }
}'

Product Photo

{
  "state": "Completed",
  "result": {
    "image": "https://examples.aig.cloudflare.com/bria/fibo-generate-1.5/product-photo.png",
    "seed": 1528689072,
    "structured_prompt": "{\"short_description\": \"A meticulously composed studio product photograph of a matte black insulated travel mug. The mug stands prominently on a pristine white seamless background, highlighted by soft, diffused key lighting from the upper left, emphasizing its sleek design and crisp edges. The image conveys a sense of modern simplicity and sophisticated utility.\", \"objects\": [{\"description\": \"A modern, insulated travel mug with a minimalist design. It features a cylindrical body that tapers slightly towards the top, with a secure, leak-proof lid. The matte black finish absorbs light, giving it a premium, non-reflective appearance.\", \"location\": \"center\", \"relationship\": \"The primary subject of the photograph, centrally positioned to draw immediate attention.\", \"relative_size\": \"large within frame\", \"shape_and_color\": \"Cylindrical, matte black\", \"texture\": \"Smooth, non-reflective matte finish\", \"appearance_details\": \"Subtle branding logo debossed near the bottom, barely visible due to the matte finish and lighting. The lid is also matte black, with a small, integrated sip opening.\", \"orientation\": \"Upright, perfectly vertical\"}], \"background_setting\": \"A pristine, pure white seamless studio background that creates an infinite, shadow-free horizon, ensuring the product stands out without distractions.\", \"lighting\": {\"conditions\": \"Studio lighting, soft and diffused\", \"direction\": \"Key light from the upper left, fill light from the right to minimize harsh shadows\", \"shadows\": \"Very soft, subtle shadow cast directly beneath and slightly to the right of the mug, providing just enough depth without being distracting. Edges are crisp and well-defined.\"}, \"aesthetics\": {\"composition\": \"Centered, product photography composition, emphasizing symmetry and clean lines.\", \"color_scheme\": \"Monochromatic with high contrast between the matte black mug and the pure white background.\", \"mood_atmosphere\": \"Clean, sophisticated, modern, and minimalist.\", \"aesthetic_score\": \"very high\", \"preference_score\": \"very high\"}, \"photographic_characteristics\": {\"depth_of_field\": \"Shallow, with the mug in sharp focus and the background completely blurred into an abstract white field.\", \"focus\": \"Sharp focus on the entire travel mug, highlighting its crisp edges and surface details.\", \"camera_angle\": \"Eye-level, slightly elevated to showcase the top edge of the lid.\", \"lens_focal_length\": \"Standard lens (e.g., 50mm-85mm) to avoid distortion and accurately represent the product.\"}, \"style_medium\": \"photograph\", \"context\": \"This is a product marketing photograph intended for e-commerce websites, print catalogs, or advertising campaigns, designed to showcase the quality and aesthetic appeal of the travel mug.\", \"artistic_style\": \"realistic\"}"
  }
}

Examples

<details>

<summary>Reference Image — Generate a new piece of jewelry inspired by a reference photo, from Bria's docs.</summary>

const response = await env.AI.run(
  'bria/fibo-generate-1.5',
  {
    prompt: 'a ring inspired by the image',
    images: ['https://bria-datasets.s3.us-east-1.amazonaws.com/api_doc/fibo/ref_1.jpg'],
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "bria/fibo-generate-1.5",
  "input": {
    "prompt": "a ring inspired by the image",
    "images": [
      "https://bria-datasets.s3.us-east-1.amazonaws.com/api_doc/fibo/ref_1.jpg"
    ]
  }
}'

Reference Image

{
  "state": "Completed",
  "result": {
    "image": "https://examples.aig.cloudflare.com/bria/fibo-generate-1.5/reference-image.png",
    "seed": 120559985,
    "structured_prompt": "{\"short_description\": \"A close-up photograph of an elegant ring featuring a teardrop-shaped ruby set in a thick, curb-chain inspired gold band. The ring is positioned on a smooth, light-colored surface, with soft, diffused lighting highlighting its intricate details and the gem's vibrant color.\", \"objects\": [{\"description\": \"An elegant ring with a prominent teardrop-shaped ruby gemstone. The band of the ring is crafted from polished gold, designed to resemble a thick, interlocked curb chain, giving it a modern yet classic aesthetic. The ruby is securely set in a gold bezel, allowing light to pass through and enhance its deep red hue.\", \"location\": \"center\", \"relationship\": \"The central focus of the image, resting on a smooth surface.\", \"relative_size\": \"large within frame\", \"shape_and_color\": \"Irregular shape with a teardrop red gem and a golden band.\", \"texture\": \"Smooth, polished metal and faceted, glassy gemstone.\", \"appearance_details\": \"The gold band has distinct, interlocked links, mimicking a curb chain. The ruby is a rich, translucent red with visible facets.\", \"orientation\": \"Slightly angled, with the teardrop point facing towards the bottom-right.\"}], \"background_setting\": \"A minimalist, light-colored, smooth surface, possibly a tabletop or a display stand, providing a clean and uncluttered backdrop that allows the ring to stand out. There are no other distracting elements in the background.\", \"lighting\": {\"conditions\": \"Soft, diffused studio lighting\", \"direction\": \"Evenly lit from above and slightly to the front\", \"shadows\": \"Subtle, soft shadows directly beneath the ring, indicating depth without harshness.\"}, \"aesthetics\": {\"composition\": \"Centered, close-up shot, with the ring occupying a significant portion of the frame.\", \"color_scheme\": \"Warm complementary colors, with the rich red of the ruby contrasting with the golden band and the neutral, light background.\", \"mood_atmosphere\": \"Elegant, luxurious, and sophisticated.\", \"aesthetic_score\": \"very high\", \"preference_score\": \"very high\"}, \"photographic_characteristics\": {\"depth_of_field\": \"Shallow, with the ring in sharp focus and the background slightly blurred to isolate the subject.\", \"focus\": \"Sharp focus on subject\", \"camera_angle\": \"Slightly high angle, looking down at the ring.\", \"lens_focal_length\": \"Macro\"}, \"style_medium\": \"photograph\", \"context\": \"This is a concept for a high-end jewelry product photograph, suitable for an e-commerce website, a luxury catalog, or a fashion magazine advertisement.\", \"artistic_style\": \"realistic\"}"
  }
}

</details>

<details>

<summary>4MP Landscape — Generate a widescreen image at 4MP. 4MP adds about 30 seconds of latency compared with 1MP.</summary>

const response = await env.AI.run(
  'bria/fibo-generate-1.5',
  {
    prompt:
      'aerial view of a winding river through an autumn forest at golden hour, mist rising from the water, highly detailed',
    resolution: '4MP',
    aspect_ratio: '16:9',
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "bria/fibo-generate-1.5",
  "input": {
    "prompt": "aerial view of a winding river through an autumn forest at golden hour, mist rising from the water, highly detailed",
    "resolution": "4MP",
    "aspect_ratio": "16:9"
  }
}'

4MP Landscape