Bỏ qua đến nội dung

Fibo Lite

Tích hợp

Id mô hình bria/fibo-lite/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-lite/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"

Yêu cầu này: 0,036 $ 36 tín dụng API Chạy trên trang này

Lấy khóa API
Bria AI Văn bản sang hình ảnh Nhanh #bria#fibo#lite

Mô hình text-to-image nhẹ, nhanh với hỗ trợ lời nhắc có cấu trúc và hình ảnh tham chiếu tùy chọn

Bria AI · Hình ảnh

Kết quả đầu tiên của bạn sẽ xuất hiện ở đây

Tạo một yêu cầu bên dưới và chạy bằng khóa API của bạn. Đầu ra được sao chép vào bộ lưu trữ của chúng tôi, giữ vĩnh viễn hoặc 7 ngày miễn phí.

Tạo một yêu cầu

Các điều khiển được tạo từ lược đồ mô hình. Mã và giá sẽ cập nhật khi bạn thay đổi chúng.

Lời nhắc dùng cho việc tạo sinh.

aspect_ratio mặc định 1:1

Tỷ lệ khung hình; các giá trị khả dụng là 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9.

Nâng cao image · seed · structured_prompt
image_url
Thả tệp hoặc

URL của hình ảnh đầu vào.

mặc định 7

Seed được bộ sinh số ngẫu nhiên sử dụng.

Lời nhắc có cấu trúc dùng cho việc tạo sinh.

POST /run/bria/fibo-lite/generate?wait=20 báo giá → 0,036 $
# 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-lite/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"

Chạy yêu cầu này

Key của bạn vẫn nằm trong trình duyệt này: key chỉ được gửi đến Doitong API và chỉ được lưu trong localStorage nếu bạn chọn Ghi nhớ. Nhận khóa API

Giới thiệu về Fibo Lite

Biến thể Fibo nhẹ hơn, tạo hình ảnh từ `prompt` hoặc `structured_prompt`, với `image_url` tùy chọn làm đầu vào. Các cài đặt là `seed` (mặc định 7) và `aspect_ratio` trong chín giá trị. Mô hình không có điều khiển độ phân giải hoặc số bước, đồng thời trả về lời nhắc có cấu trúc cùng hình ảnh.

Tham số

Gửi tên chuẩn hoặc tên gốc, không gửi cả hai. Tên chuẩn

TênKiểu Mặc địnhĐược phép Mô tả
prompttùy chọn
Kiểustring | null
Lời nhắc dùng cho việc tạo sinh.
structured_prompttùy chọn
Kiểuobject
Lời nhắc có cấu trúc dùng cho việc tạo sinh.
structured_prompt.short_descriptionbắt buộc
Kiểustring
Tổng quan ngắn gọn về nội dung hình ảnh, giới hạn ở 200 từ.
structured_prompt.objectsbắt buộc
Kiểuobject[]
Danh sách các đối tượng đáng chú ý ở tiền cảnh hoặc trung cảnh.
structured_prompt.objects[].descriptionbắt buộc
Kiểustring
Tóm tắt ngắn gọn mô tả đối tượng.
structured_prompt.objects[].locationbắt buộc
Kiểustring
Vị trí, ví dụ: 'center', 'top-left' hoặc 'bottom-right foreground'.
structured_prompt.objects[].relationshipbắt buộc
Kiểustring
Mô tả mối quan hệ của đối tượng này với các đối tượng khác trong hình ảnh.
structured_prompt.objects[].relative_sizetùy chọn
Kiểustring | null
Kích thước, ví dụ: 'small', 'medium' hoặc 'large within frame'.
structured_prompt.objects[].shape_and_colortùy chọn
Kiểustring | null
Hình dạng cơ bản và màu chính của đối tượng.
structured_prompt.objects[].texturetùy chọn
Kiểustring | null
Kết cấu, ví dụ: 'smooth', 'rough', 'metallic' hoặc 'furry'.
structured_prompt.objects[].appearance_detailstùy chọn
Kiểustring | null
Các đặc điểm hình ảnh bổ sung đáng lưu ý.
structured_prompt.objects[].number_of_objectstùy chọn
Kiểuinteger | null
Số lượng đối tượng trong cụm.
structured_prompt.objects[].posetùy chọn
Kiểustring | null
Tư thế của cơ thể.
structured_prompt.objects[].expressiontùy chọn
Kiểustring | null
Biểu cảm thể hiện trên khuôn mặt.
structured_prompt.objects[].clothingtùy chọn
Kiểustring | null
Trang phục đang mặc.
structured_prompt.objects[].actiontùy chọn
Kiểustring | null
Hành động người đó thực hiện.
structured_prompt.objects[].gendertùy chọn
Kiểustring | null
Giới tính của người đó.
structured_prompt.objects[].skin_tone_and_texturetùy chọn
Kiểustring | null
Tông màu và kết cấu da.
structured_prompt.objects[].orientationtùy chọn
Kiểustring | null
Hướng của người đó.
structured_prompt.background_settingbắt buộc
Kiểustring
Mô tả toàn bộ cảnh: địa điểm, môi trường xung quanh hoặc phông nền, cùng mọi đặc điểm hậu cảnh đáng lưu ý.
structured_prompt.lightingbắt buộc
Kiểuobject
Thông tin mô tả ánh sáng.
structured_prompt.lighting.conditionsbắt buộc
Kiểustring
Ví dụ về ánh sáng gồm 'bright daylight', 'dim indoor', 'studio lighting' và 'golden hour'.
structured_prompt.lighting.directionbắt buộc
Kiểustring
Hướng ánh sáng; ví dụ gồm 'front-lit', 'backlit' và 'side-lit from left'.
structured_prompt.lighting.shadowstùy chọn
Kiểustring | null
Mô tả mọi bóng đổ hiện diện.
structured_prompt.aestheticsbắt buộc
Kiểuobject
Thông tin mô tả tính thẩm mỹ của hình ảnh.
structured_prompt.aesthetics.compositionbắt buộc
Kiểustring
Phong cách bố cục; ví dụ gồm 'rule of thirds', 'symmetrical', 'centered' và 'leading lines'.
structured_prompt.aesthetics.color_schemebắt buộc
Kiểustring
Bảng màu; ví dụ gồm 'monochromatic blue', 'warm complementary colors' và 'high contrast'.
structured_prompt.aesthetics.mood_atmospherebắt buộc
Kiểustring
Tâm trạng hoặc không khí, ví dụ `joyful`, `serene`, `mysterious` hoặc `energetic`.
structured_prompt.aesthetics.aesthetic_scorebắt buộc
Kiểustring
Mô tả điểm số, ví dụ medium, very low, low, very high hoặc high.
structured_prompt.aesthetics.preference_scorebắt buộc
Kiểustring
Mô tả điểm số, ví dụ medium, very low, low, very high hoặc high.
structured_prompt.photographic_characteristicstùy chọn
Kiểuobject
Thông tin mô tả các đặc tính nhiếp ảnh.
structured_prompt.photographic_characteristics.depth_of_fieldbắt buộc
Kiểustring
Độ sâu trường ảnh; ví dụ gồm 'shallow', 'deep' và 'bokeh background'.
structured_prompt.photographic_characteristics.focusbắt buộc
Kiểustring
Đặc tính lấy nét; ví dụ gồm 'sharp focus on subject', 'soft focus' và 'motion blur'.
structured_prompt.photographic_characteristics.camera_anglebắt buộc
Kiểustring
Góc máy ảnh; ví dụ gồm 'eye-level', 'low angle', 'high angle' và 'dutch angle'.
structured_prompt.photographic_characteristics.lens_focal_lengthbắt buộc
Kiểustring
Loại ống kính hoặc tiêu cự, ví dụ `macro`, `fisheye`, `wide-angle` hoặc `telephoto`.
structured_prompt.style_mediumtùy chọn
Kiểustring | null
Chất liệu hoặc phong cách nghệ thuật được sử dụng.
structured_prompt.text_rendertùy chọn
Kiểuobject[]
Danh sách các thành phần văn bản được hiển thị trong hình ảnh.
structured_prompt.text_render[].textbắt buộc
Kiểustring
Nội dung văn bản.
structured_prompt.text_render[].locationbắt buộc
Kiểustring
Vị trí, ví dụ: 'center', 'top-left' hoặc 'bottom-right foreground'.
structured_prompt.text_render[].sizebắt buộc
Kiểustring
Kích thước, ví dụ: 'small', 'medium' hoặc 'large within frame'.
structured_prompt.text_render[].colorbắt buộc
Kiểustring
Màu sắc, ví dụ `green`, `red` hoặc `blue`.
structured_prompt.text_render[].fontbắt buộc
Kiểustring
Kiểu phông chữ, ví dụ `minimalist`, `realistic` hoặc `cartoonish`.
structured_prompt.text_render[].appearance_detailstùy chọn
Kiểustring | null
Các đặc điểm hình ảnh bổ sung đáng lưu ý.
structured_prompt.contextbắt buộc
Kiểustring
Ngữ cảnh bổ sung hỗ trợ diễn giải hình ảnh.
structured_prompt.artistic_stylebắt buộc
Kiểustring
Các đặc điểm nghệ thuật cụ thể, tối đa 3 từ.
structured_prompt.subject_emotionstùy chọn
Kiểustring | null
Mô tả rõ các biểu cảm hoặc cảm xúc có thể nhìn thấy của chủ thể.
image_urltùy chọn image
Kiểuurl · image
URL của hình ảnh đầu vào.
seedtùy chọn
Kiểuinteger
Mặc định7
Seed được bộ sinh số ngẫu nhiên sử dụng.
aspect_ratiotùy chọn
Kiểuenum
Mặc định1:1
1:12:33:23:44:34:55:49:1616:9
Tỷ lệ khung hình; các giá trị khả dụng là 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9.
bắt buộc Tên chuẩn, cũng được chấp nhận

Các tham số tệp nhận URL https:// công khai, URI data: tối đa 10 MB hoặc file_url của một tệp tải lên. Tệp

Đầu ra

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo-lite/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": 36,
    "usd": "0.036",
    "charged": 36,
    "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": [
      {}
    ],
    "structured_prompt": {
      "short_description": "string",
      "objects": [
        {
          "description": "string",
          "location": "string",
          "relationship": "string",
          "relative_size": "string",
          "shape_and_color": "string",
          "texture": "string",
          "appearance_details": "string",
          "number_of_objects": 1,
          "pose": "string",
          "expression": "string",
          "clothing": "string",
          "action": "string",
          "gender": "string",
          "skin_tone_and_texture": "string",
          "orientation": "string"
        }
      ],
      "background_setting": "string",
      "lighting": {
        "conditions": "string",
        "direction": "string",
        "shadows": "string"
      },
      "aesthetics": {
        "composition": "string",
        "color_scheme": "string",
        "mood_atmosphere": "string",
        "aesthetic_score": "string",
        "preference_score": "string"
      },
      "photographic_characteristics": {
        "depth_of_field": "string",
        "focus": "string",
        "camera_angle": "string",
        "lens_focal_length": "string"
      },
      "style_medium": "string",
      "text_render": [
        {
          "text": "string",
          "location": "string",
          "size": "string",
          "color": "string",
          "font": "string",
          "appearance_details": "string"
        }
      ],
      "context": "string",
      "artistic_style": "string",
      "subject_emotions": "string"
    }
  },
  "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"
  }
}
Tệp của bạn, lựa chọn của bạnMỗi outputs[].url là một bản sao trên bộ lưu trữ của chúng tôi: được giữ vĩnh viễn (tính phí theo GB-tháng) hoặc 7 ngày miễn phí, theo cài đặt tài khoản hoặc ?storage=.
Cùng một cấu trúc trên mọi mô hìnhtype, url, content_type, width, height và duration cho hình ảnh, video và âm thanh. output là đối tượng kết quả riêng của mô hình.
Các trường đầu ra
image
object {url, content_type, file_name, file_size, width, height}Hình ảnh do mô hình tạo.
images
array of objectCác hình ảnh được tạo sinh.
structured_prompt
object {short_description, objects, background_setting, lighting, aesthetics, photographic_characteristics, style_medium, text_render, context, artistic_style, subject_emotions}Lời nhắc hiện đang sử dụng.

Thêm mô hình: Văn bản sang hình ảnh

Dành cho tác nhân AI: trang này ở dạng Markdown tại https://doitong.com/vi/developers/models/bria/fibo-lite/generate.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt