# Fibo 2.0 Generate API

> ப்ராம்ப்ட்களை கட்டமைக்கப்பட்ட VGL ஆக விரிவாக்கும், பாணி முன்னமைவுகள் மற்றும் குறிப்பு படப் பயன்முறையைக் கொண்ட உரையிலிருந்து படம் உருவாக்கும் மாதிரி

தடையற்ற வடிவிலான `prompt` இலிருந்து படங்களை உருவாக்குகிறது; அது VGL ஆவணமாக விரிவாக்கப்பட்டு திருப்பி வழங்கப்படுகிறது. `vgl`-ஐ நேரடியாக அனுப்பலாம், அல்லது ப்ராம்ப்ட் மூலம் அதைச் செம்மைப்படுத்தலாம், அல்லது காட்சி குறிப்பாக `image_url`-ஐ வழங்கலாம். `style` இல் Kodak Film, Hard Flash, Hazy Dreamy மற்றும் Rough Realism ஆகியவை உள்ளன. `aspect_ratio` இல் 16 மதிப்புகள் உள்ளன, மேலும் `seed` ஆதரிக்கப்படுகிறது.

- Model id: `bria/fibo-2/generate`
- Made by: Bria AI
- Category: Text to Image
- Output: image
- Price: $0.04 / image (cheapest run $0.04 (40 API credits))
- Run: `POST https://api.doitong.com/v1/run/bria/fibo-2/generate`
- Quote: `POST https://api.doitong.com/v1/quote/bria/fibo-2/generate`
- Docs page: https://doitong.com/ta/developers/models/bria/fibo-2/generate

## Pricing

Price: **$0.04 / image**. Billed per generated image.

The full example input below costs $0.04 = 40 API credits (1 image × 40 API credits).

Prices are the upstream price in USD, paid from the API balance in API credits (1000 API credits = 1 USD). `POST https://api.doitong.com/v1/quote/bria/fibo-2/generate` with the same JSON body returns the exact price for that input; the quote is exactly what a run charges. Invalid input is never charged and failed or canceled requests are refunded automatically.

## Input parameters

Send either the canonical name or the native field name (not both). Canonical names are the same across models.

| Parameter | Canonical name | Type | Required | Default | Allowed values / range | Description |
|---|---|---|---|---|---|---|
| `prompt` |  | string \| null | no |  |  | அந்த ஆவணம் வழங்கப்பட்டால் 'vgl'-க்கு மாற்றங்களைக் குறிப்பிடும் உருவாக்கம் கோரிக்கை. இது இல்லாமல், கட்டற்ற வடிவிலான விளக்கம் VGL ஆவணமாக விரிவாக்கப்பட்டு, பதிலில் சேர்க்கப்படும். |
| `style` |  | enum (string) \| null | no |  | `Kodak Film`, `Hard Flash`, `Hazy Dreamy`, `Rough Realism` | 'prompt' உடன் மட்டுமே கிடைக்கும் உருவாக்கப்பட்ட படத்தின் style. 'image_url', 'vgl' அல்லது 'negative_prompt' உடன் style-ஐ இணைப்பது ஆதரிக்கப்படாது. |
| `image_url` | `image` | string (image URL) \| null | no |  |  | inspire பயன்முறைக்கான குறிப்புப் படம்; `vgl` உடன் இணைத்துப் பயன்படுத்த முடியாது. `prompt` வழங்கப்பட்டால், குறிப்புப் படத்தை மீண்டும் உருவாக்குவதற்குப் பதிலாக, அதிலுள்ள காட்சி அம்சங்களைப் பயன்படுத்தி, ப்ராம்ப்ட்டில் குறிப்பிடப்பட்ட காட்சியின் புதிய சித்தரிப்பை VGL உருவாக்கும். `prompt` இல்லையெனில், குறிப்புப் படத்தையே விவரித்து, அதற்கு நெருக்கமான ஒரு மாற்று வடிவத்தை VGL உருவாக்கும். |
| `vgl` |  | object {short_description, objects, background_setting, lighting, aesthetics, photographic_characteristics, style_medium, text_render, context, artistic_style} \| null | no |  |  | கட்டமைக்கப்பட்ட JSON காட்சி விளக்கத்தைக் கொண்ட VGL (Visual Generation Language) ஆவணம்; முந்தைய கோரிக்கைகளால் திருப்பி அனுப்பப்பட்ட ஆவணங்களும் ஏற்கப்படும். `prompt` இல்லாமல், இது மாற்றமின்றி வழங்கப்படும்; `prompt` இருந்தால், வழங்குவதற்கு முன் ப்ராம்ப்டின்படி VGL ஆவணத்தைச் செம்மைப்படுத்தும். `image_url` அல்லது `style` உடன் இணைக்க முடியாது. |
| `vgl.short_description` |  | string \| null | no |  |  | நோக்கமுள்ள வெளியீட்டுப் படத்தின் சுருக்கமான விளக்கம். |
| `vgl.objects` |  | array of object {description, location, relationship, relative_size, shape_and_color, texture, appearance_details, number_of_objects, pose, expression, clothing, action, gender, skin_tone_and_texture, orientation} \| null | no | `[]` |  | உருவாக்கப்பட்ட படத்தின் உள்ளடக்கத்தைப் பட்டியலாகக் குறிப்பிடவும்; ஒவ்வொரு பொருளின் பண்புகளையும், சித்தரிக்கப்பட்ட பிற பொருட்களுடனான அதன் தொடர்புகளையும் பதிவு செய்யவும். |
| `vgl.objects[].description` |  | string \| null | no |  |  | நோக்கமுள்ள வெளியீட்டுப் பொருளின் விளக்கம். |
| `vgl.objects[].location` |  | string \| null | no |  |  | படத்திற்குள் பொருளின் நிலை. |
| `vgl.objects[].relationship` |  | string | yes |  |  | படத்தில் உள்ள பிற பொருட்களுடன் பொருளின் தொடர்பு. |
| `vgl.objects[].relative_size` |  | string \| null | no |  |  | படத்துடன் ஒப்பிடும்போது பொருளின் அளவு. |
| `vgl.objects[].shape_and_color` |  | string \| null | no |  |  | பொருளின் வடிவமும் நிறமும். |
| `vgl.objects[].texture` |  | string \| null | no |  |  | பொருளின் texture. |
| `vgl.objects[].appearance_details` |  | string \| null | no |  |  | பொருளின் தோற்றத்தை விவரிக்கும் விவரங்கள். |
| `vgl.objects[].number_of_objects` |  | integer \| null | no |  |  | படத்திற்குள் உள்ள பொருட்களின் எண்ணிக்கை. |
| `vgl.objects[].pose` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருளின் pose. |
| `vgl.objects[].expression` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருள் காட்டும் expression. |
| `vgl.objects[].clothing` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருள் அணிந்துள்ள ஆடை. |
| `vgl.objects[].action` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருள் செய்யும் செயல். |
| `vgl.objects[].gender` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருளின் பாலினம். |
| `vgl.objects[].skin_tone_and_texture` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருளின் தோல் texture மற்றும் tone. |
| `vgl.objects[].orientation` |  | string \| null | no |  |  | சித்தரிக்கப்பட்ட பொருளின் orientation. |
| `vgl.background_setting` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான பின்னணி அமைப்பு. |
| `vgl.lighting` |  | object {conditions, direction, shadows} \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான lighting. |
| `vgl.lighting.conditions` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான lighting நிலைமைகள். |
| `vgl.lighting.direction` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான lighting திசை. |
| `vgl.lighting.shadows` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்தில் சித்தரிக்க வேண்டிய shadows. |
| `vgl.aesthetics` |  | object {composition, color_scheme, mood_atmosphere} \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான aesthetic பண்புகள். |
| `vgl.aesthetics.composition` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான composition. |
| `vgl.aesthetics.color_scheme` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான color palette. |
| `vgl.aesthetics.mood_atmosphere` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான mood மற்றும் atmosphere. |
| `vgl.photographic_characteristics` |  | object {depth_of_field, focus, camera_angle, lens_focal_length} \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான photographic பண்புகள். |
| `vgl.photographic_characteristics.depth_of_field` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான depth of field. |
| `vgl.photographic_characteristics.focus` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான focus. |
| `vgl.photographic_characteristics.camera_angle` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான camera angle. |
| `vgl.photographic_characteristics.lens_focal_length` |  | string \| null | no |  |  | focal length-ஆக வெளிப்படுத்தப்படும், உருவாக்கப்பட்ட படத்திற்கான lens அமைப்பு. |
| `vgl.style_medium` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான stylistic medium. |
| `vgl.text_render` |  | array of object {text, location, size, color, font, appearance_details} \| null | no | `[]` |  | படத்தில் சேர்க்க வேண்டிய உரைப் பதிவுகளின் பட்டியல். |
| `vgl.text_render[].text` |  | string | yes |  |  | render செய்ய வேண்டிய உரை; வழங்கப்பட்ட சொற்றொடரைத் துல்லியமாக மீண்டும் உருவாக்க உதவும் படமாக fibo-2-க்கு காட்சியாகவும் வழங்கப்படும். |
| `vgl.text_render[].location` |  | string \| null | no |  |  | படத்திற்குள் உரையின் நிலை. |
| `vgl.text_render[].size` |  | string \| null | no |  |  | படத்திற்குள் உரையின் அளவு. |
| `vgl.text_render[].color` |  | string \| null | no |  |  | உரைக்குப் பயன்படுத்தப்படும் நிறம். |
| `vgl.text_render[].font` |  | string \| null | no |  |  | உரையின் font பாணி. |
| `vgl.text_render[].appearance_details` |  | string \| null | no |  |  | உரையின் தோற்றம் குறித்த கூடுதல் குறிப்பிடத்தக்க விவரங்கள். |
| `vgl.context` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான context. |
| `vgl.artistic_style` |  | string \| null | no |  |  | உருவாக்கப்பட்ட படத்திற்கான artistic style. |
| `seed` |  | integer | no | `5555` | 0 – 2,147,483,647 | மீண்டும் உருவாக்கக்கூடிய முடிவுகளுக்கான சீரற்ற தன்மையைக் கட்டுப்படுத்தும் விதை, 0 முதல் 2147483647 வரை. |
| `aspect_ratio` |  | enum (string) | no | `1:1` | `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` | தோராயமாக ஒரு மெகாபிக்சலில் படத்தின் விகிதங்கள். கிடைக்கும் விகிதங்கள்: 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. |

File parameters (`image`) take a public `https://` URL, a `data:` URI up to 10 MB, or the `file_url` of an upload from `POST /files`.

## Example input

Required parameters only:

```json
{}
```

A fuller example:

```json
{
  "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
```

## Run it

Set `DOITONG_API_KEY` to a key from https://doitong.com/developers/dashboard#keys. `?wait=20` returns the finished request in the same call when it is ready within 20 seconds; otherwise poll `GET /requests/{id}` (it also accepts `?wait=`), or pass `webhook_url`.

### curl

```bash
# 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"
```

### JavaScript

```javascript
const API = "https://api.doitong.com/v1";
const headers = {
  "Authorization": "Bearer " + process.env.DOITONG_API_KEY,
  "Content-Type": "application/json",
};

// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/bria/fibo-2/generate?wait=20", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);

// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
  res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
  request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
```

### Python

```python
import os
import requests

API = "https://api.doitong.com/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}

payload = {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}

# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/bria/fibo-2/generate", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
    raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])

# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
    request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
    raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
```

### MCP

The MCP server at `https://api.doitong.com/v1/mcp` exposes the tools `search_models`, `get_model`, `quote`, `run`, `get_request`, `cancel_request`, `list_requests`, `create_upload` and `get_account`. A `run` call for this model:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run",
    "arguments": {
      "model_id": "bria/fibo-2/generate",
      "input": {
        "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
      },
      "wait_seconds": 20
    }
  }
}
```

## Response

Every call returns a request object. `status` is one of `queued`, `running`, `succeeded`, `failed`, `canceled`. `outputs` lists the generated files with URLs on our storage (kept forever, or 7 days with `?storage=temporary`; `storage` says which); `output` is the model's own result object with the same URLs.

```json
{
  "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"
  }
}
```

### Output fields (`output`)

| Field | Type | Description |
|---|---|---|
| `image` | object {url, content_type, file_name, file_size, width, height} | மாதிரியால் உருவாக்கப்பட்ட படம். |
| `images` | array of object {url, content_type, file_name, file_size, width, height} | பிற FIBO apps திருப்பி வழங்கும் format-க்கு ஒத்த படப் பட்டியல்; அதன் ஒரே entry அதே படமாகும். |
| `vgl` | object | படத்தை உருவாக்கப் பயன்படுத்தப்படும் VGL. |

## Related models

- [Fibo 2.0 Edit](https://doitong.com/developers/models/bria/fibo-2/edit.md) (`bria/fibo-2/edit`): $0.04 / image
- [FLUX.1 \[dev\]](https://doitong.com/developers/models/flux/dev.md) (`flux/dev`): $0.025 / megapixel
- [FLUX.1 \[schnell\]](https://doitong.com/developers/models/flux/schnell.md) (`flux/schnell`): $0.003 / megapixel
- [FLUX.2 \[dev\]](https://doitong.com/developers/models/flux-2.md) (`flux-2`): $0.012 / megapixel
- [FLUX.2 \[pro\]](https://doitong.com/developers/models/flux-2-pro.md) (`flux-2-pro`): $0.015 / megapixel of output image
- [GPT Image 2.5 Text to Image](https://doitong.com/developers/models/openai/gpt-image-2.5/flare/text-to-image.md) (`openai/gpt-image-2.5/flare/text-to-image`): from $0.008 / image
- [Ideogram V4.5](https://doitong.com/developers/models/ideogram/v4.5.md) (`ideogram/v4.5`): from $0.03 / image
- [Nano Banana 2](https://doitong.com/developers/models/nano-banana-2.md) (`nano-banana-2`): from $0.06 / image

## Links

- HTML page: https://doitong.com/developers/models/bria/fibo-2/generate
- All models and guides for AI agents: https://doitong.com/developers/llms.txt
- OpenAPI 3.1 with this model's typed request body: https://doitong.com/developers/openapi.json?model=bria/fibo-2/generate
- Errors: https://doitong.com/developers/docs/errors
- Model details as JSON: https://api.doitong.com/v1/models/bria/fibo-2/generate
