Skip to content

Fibo 2.0 Generate

Integrate

Model id bria/fibo-2/generate
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/fibo-2/generate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.04 40 API credits Run it on this page

Get API key
Bria AI Text to Image #text-to-image#image-generation#complex-prompts#structured-prompts

Text-to-image model that expands prompts into structured VGL, with style presets and a reference image mode

Bria AI · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

Generation request that specifies changes to 'vgl' when that document is supplied. Without it, the free-form description is expanded into a VGL document, which the response includes.

default 1:1

Image proportions at approximately one megapixel. Available ratios: 1:1, 1:2, 1:3, 1:4, 1:5, 2:1, 2:3, 3:1, 3:2, 3:4, 4:1, 4:3, 4:5, 5:1, 5:4, 9:16, 9:21, 10:16, 16:9, 16:10, 21:9.

Advanced image · style · seed · vgl
image_url
Drop a file, or

Reference image for inspire mode; cannot be combined with `vgl`. When `prompt` is supplied, VGL takes visual cues from the reference to create a new depiction of the prompted scene rather than reproduce the reference. Without `prompt`, VGL describes the reference itself, producing a close variation.

style

Generated-image style available only with 'prompt'. Combining a style with 'image_url', 'vgl', or 'negative_prompt' is not supported.

default 5555

Seed controlling randomness for reproducible results, ranging from 0 through 2147483647.

VGL (Visual Generation Language) document containing a structured JSON scene description; documents returned by earlier requests are accepted. Without `prompt`, it is rendered unchanged; with `prompt`, VGL refines the document according to the prompt before rendering. Cannot be combined with `image_url` or `style`.

POST /run/bria/fibo-2/generate?wait=20 quote → $0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/fibo-2/generate?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Fibo 2.0 Generate

Creates images from a free-form `prompt` that is expanded into a VGL document, which is returned. You can also pass `vgl` directly or refine it with a prompt, or supply `image_url` as a visual reference. `style` offers Kodak Film, Hard Flash, Hazy Dreamy and Rough Realism. `aspect_ratio` has 16 listed values, and `seed` is supported.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptoptional
Typestring | null
Generation request that specifies changes to 'vgl' when that document is supplied. Without it, the free-form description is expanded into a VGL document, which the response includes.
styleoptional
Typeenum
Kodak FilmHard FlashHazy DreamyRough Realism
Generated-image style available only with 'prompt'. Combining a style with 'image_url', 'vgl', or 'negative_prompt' is not supported.
image_urloptional image
Typeurl · image
Reference image for inspire mode; cannot be combined with `vgl`. When `prompt` is supplied, VGL takes visual cues from the reference to create a new depiction of the prompted scene rather than reproduce the reference. Without `prompt`, VGL describes the reference itself, producing a close variation.
vgloptional
Typeobject
VGL (Visual Generation Language) document containing a structured JSON scene description; documents returned by earlier requests are accepted. Without `prompt`, it is rendered unchanged; with `prompt`, VGL refines the document according to the prompt before rendering. Cannot be combined with `image_url` or `style`.
vgl.short_descriptionoptional
Typestring | null
Brief description of the intended output image.
vgl.objectsoptional
Typeobject[]
Default[]
Specify the generated image's contents as a list, recording each object's attributes and its relationships with the other depicted objects.
vgl.objects[].descriptionoptional
Typestring | null
Description of the intended output object.
vgl.objects[].locationoptional
Typestring | null
Object position within the image.
vgl.objects[].relationshiprequired
Typestring
Object's relationship to the image's other objects.
vgl.objects[].relative_sizeoptional
Typestring | null
Object size relative to the image.
vgl.objects[].shape_and_coloroptional
Typestring | null
Object's shape and color.
vgl.objects[].textureoptional
Typestring | null
Object's texture.
vgl.objects[].appearance_detailsoptional
Typestring | null
Details describing the object's appearance.
vgl.objects[].number_of_objectsoptional
Typeinteger | null
Count of objects within the image.
vgl.objects[].poseoptional
Typestring | null
Pose of the depicted object.
vgl.objects[].expressionoptional
Typestring | null
Expression shown by the depicted object.
vgl.objects[].clothingoptional
Typestring | null
Clothing worn by the depicted object.
vgl.objects[].actionoptional
Typestring | null
Action performed by the depicted object.
vgl.objects[].genderoptional
Typestring | null
Gender of the depicted object.
vgl.objects[].skin_tone_and_textureoptional
Typestring | null
Skin texture and tone of the depicted object.
vgl.objects[].orientationoptional
Typestring | null
Orientation of the depicted object.
vgl.background_settingoptional
Typestring | null
Background setting for the generated image.
vgl.lightingoptional
Typeobject
Lighting for the generated image.
vgl.lighting.conditionsoptional
Typestring | null
Lighting conditions for the generated image.
vgl.lighting.directionoptional
Typestring | null
Lighting direction for the generated image.
vgl.lighting.shadowsoptional
Typestring | null
Shadows to depict in the generated image.
vgl.aestheticsoptional
Typeobject
Aesthetic qualities for the generated image.
vgl.aesthetics.compositionoptional
Typestring | null
Composition for the generated image.
vgl.aesthetics.color_schemeoptional
Typestring | null
Color palette for the generated image.
vgl.aesthetics.mood_atmosphereoptional
Typestring | null
Mood and atmosphere for the generated image.
vgl.photographic_characteristicsoptional
Typeobject
Photographic properties for the generated image.
vgl.photographic_characteristics.depth_of_fieldoptional
Typestring | null
Depth of field for the generated image.
vgl.photographic_characteristics.focusoptional
Typestring | null
Focus for the generated image.
vgl.photographic_characteristics.camera_angleoptional
Typestring | null
Camera angle for the generated image.
vgl.photographic_characteristics.lens_focal_lengthoptional
Typestring | null
Lens setting for the generated image, expressed as a focal length.
vgl.style_mediumoptional
Typestring | null
Stylistic medium for the generated image.
vgl.text_renderoptional
Typeobject[]
Default[]
List of text entries to include in the image.
vgl.text_render[].textrequired
Typestring
Text for rendering, also presented visually to fibo-2 as an image to help reproduce the supplied wording exactly.
vgl.text_render[].locationoptional
Typestring | null
Text placement within the image.
vgl.text_render[].sizeoptional
Typestring | null
Text size within the image.
vgl.text_render[].coloroptional
Typestring | null
Color used for the text.
vgl.text_render[].fontoptional
Typestring | null
Font style for the text.
vgl.text_render[].appearance_detailsoptional
Typestring | null
Additional noteworthy details about the text's appearance.
vgl.contextoptional
Typestring | null
Context for the generated image.
vgl.artistic_styleoptional
Typestring | null
Artistic style for the generated image.
seedoptional
Typeinteger
Default5555
0 – 2,147,483,647
Seed controlling randomness for reproducible results, ranging from 0 through 2147483647.
aspect_ratiooptional
Typeenum
Default1:1
1:11:21:31:41:52:12:33:13:23:44:14:34:55:15:49:16
+5 more9:2110:1616:916:1021:9
Image proportions at approximately one megapixel. Available ratios: 1:1, 1:2, 1:3, 1:4, 1:5, 2:1, 2:3, 3:1, 3:2, 3:4, 4:1, 4:3, 4:5, 5:1, 5:4, 9:16, 9:21, 10:16, 16:9, 16:10, 21:9.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo-2/generate",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768
    },
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "vgl": {}
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
image
object {url, content_type, file_name, file_size, width, height}Image produced by the model.
images
array of object {url, content_type, file_name, file_size, width, height}Image list matching the format returned by other FIBO apps; its sole entry is the same image.
vgl
objectVGL used to produce the image.

More models: Text to Image

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/bria/fibo-2/generate.md. All models and guides: https://doitong.com/developers/llms.txt