实现对AI图像生成的极致掌控——编写结构化的VGL(视觉生成语言)JSON,显式控制每一个视觉属性。定义示例……
Bria VGL — Full Control Over Image Crowth. 将每个视觉属性作为结构化的JSON来进行防御,而不是希望自然语言得到正确.
功能概述
Bria VGL — Full Control Over Image Crowth. 将每个视觉属性作为结构化的JSON来进行防御,而不是希望自然语言得到正确.是一项面向实际任务的技能,主要用于VGL (Visual Crowth Language) 给您以示例。它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。
核心要点
- 使用时应结合输入条件选择合适的执行方式,核对必要参数、依赖环境与输出内容,并按原始要求处理异常情况。
- 从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。
- 实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
使用与执行
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;
结果检查与注意事项
涉及批量任务时,还应保存进度,避免中断后重复操作。该技能适合用于一次性任务,也可以接入自动化工作流,与其他技能或上层代理配合完成更完整的业务链路;在组合使用时,应明确每一步的输入输出关系,并避免不同步骤之间出现参数冲突。
Bria VGL — 对图像生成的完全控制
以结构化 JSON 明确定义每一项视觉属性,而非依赖自然语言并寄希望于其准确表达。VGL(Visual Generation Language,视觉生成语言)为 Bria 的 FIBO 模型提供显式、确定性的控制能力,涵盖对象、光照、相机设置、构图与风格等全部维度。
相关技能:使用 bria-ai 通过 Bria API 执行这些 VGL 提示。VGL 定义结构化控制格式;bria-ai 负责图像生成、编辑及背景移除。
核心概念
VGL 用确定性的 JSON 替代模糊的自然语言提示,显式声明所有视觉属性:对象、光照、相机设置、构图与风格。这确保了图像生成过程可复现、可精确控制。
运行模式
| 模式 | 输入 | 输出 | 适用场景 |
|---|---|---|---|
| Generate | 文本提示 | VGL JSON | 根据描述生成新图像 |
| Edit | 图像 + 指令 | VGL JSON | 修改参考图像 |
| Edit_with_Mask | 带掩码的图像 + 指令 | VGL JSON | 填充灰色掩码区域 |
| Caption | 仅图像 | VGL JSON | 描述现有图像内容 |
| Refine | 已有 JSON + 编辑指令 | 更新后的 VGL JSON | 修改已有提示 |
JSON Schema
输出一个合法的 JSON 对象,必须包含以下字段:
1. short_description(字符串)
图像内容的简明摘要,最多 200 词。需涵盖关键主体、动作、场景与氛围。
2. objects(数组,最多 5 项)
每个对象需包含以下字段:
{
"description": "详细描述,最多 100 词",
"location": "center | top-left | bottom-right foreground | etc.",
"relative_size": "small | medium | large within frame",
"shape_and_color": "基本形状与主色调",
"texture": "smooth | rough | metallic | furry | fabric | etc.",
"appearance_details": "显著的视觉细节",
"relationship": "与其他对象的关系",
"orientation": "upright | tilted 45 degrees | facing left | horizontal | etc."
}
人物主体 需额外补充以下字段:
{
"pose": "身体姿态描述",
"expression": "winking | joyful | serious | surprised | calm",
"clothing": "着装描述",
"action": "人物正在执行的动作",
"gender": "性别描述",
"skin_tone_and_texture": "皮肤外观"
}
对象簇 需额外补充以下字段:
{
"number_of_objects": 3
}
尺寸建议:若人物为主角,应使用 "medium-to-large" 或 "large within frame"。
3. background_setting(字符串)
整体环境、场景及背景元素(不包含在 objects 中的对象)。
4. lighting(对象)
{
"conditions": "bright daylight | dim indoor | studio lighting | golden hour | blue hour | overcast",
"direction": "front-lit | backlit | side-lit from left | top-down",
"shadows": "long, soft shadows | sharp, defined shadows | minimal shadows"
}
5. aesthetics(对象)
{
"composition": "rule of thirds | symmetrical | centered | leading lines | medium shot | close-up",
"color_scheme": "monochromatic blue | warm complementary | high contrast | pastel",
"mood_atmosphere": "serene | energetic | mysterious | joyful | dramatic | peaceful"
}
若人物为主角,构图中须明确指定镜头类型:"medium shot"、"close-up" 或 "portrait composition"。
6. photographic_characteristics(对象)
{
"depth_of_field": "shallow | deep | bokeh background",
"focus": "sharp focus on subject | soft focus | motion blur",
"camera_angle": "eye-level | low angle | high angle | dutch angle | bird's-eye",
"lens_focal_length": "wide-angle | 50mm standard | 85mm portrait | telephoto | macro"
}
针对人物:优先选用 "standard lens (35mm-50mm)" 或 "portrait lens (50mm-85mm)";除非明确要求,否则避免使用广角镜头。
7. style_medium(字符串)
"photograph" | "oil painting" | "watercolor" | "3D render" | "digital illustration" | "pencil sketch"
默认值为 "photograph",除非用户明确要求其他类型。
8. artistic_style(字符串)
若非摄影风格,用最多 3 个词描述其艺术特征,例如:"impressionistic, vibrant, textured"
若为摄影风格,则使用 "realistic" 或类似表述。
9. context(字符串)
描述图像类型或用途:
"High-fashion editorial photograph for magazine spread""Concept art for fantasy video game""Commercial product photography for e-commerce"
10. text_render(数组)
默认值:空数组 []
仅当用户明确提供确切文本内容时才填充该字段:
{
"text": "用户提供的确切文本(绝不可使用占位符)",
"location": "center | top-left | bottom",
"size": "small | medium | large",
"color": "white | red | blue",
"font": "serif typeface | sans-serif | handwritten | bold impact",
"appearance_details": "Metallic finish | 3D effect | etc."
}
例外情况:作为对象固有组成部分的通用文字(例如停车标志上的 “STOP”)。
11. edit_instruction(字符串)
单条祈使句指令,用于描述编辑或生成操作。
编辑指令格式
标准编辑(无掩码)
以动词开头,清晰描述变更内容,禁止引用 “original image”(原始图像):
| 类别 | 重写后的指令 |
|---|---|
| 风格变更 | Turn the image into the cartoon style. |
| 对象属性变更 | Change the dog's color to black and white. |
| 添加元素 | Add a wide-brimmed felt hat to the subject. |
| 移除对象 | Remove the book from the subject's hands. |
| 替换对象 | Change the rose to a bright yellow sunflower. |
| 光照调整 | Change the lighting from dark and moody to bright and vibrant. |
| 构图调整 | Change the perspective to a wider shot. |
| 文字变更 | Change the text "Happy Anniversary" to "Hello". |
| 质量提升 | Refine the image to obtain increased clarity and sharpness. |
掩码区域编辑
目标区域统一表述为 “masked regions”(掩码区域)或 “masked area”(掩码区域):
| 意图 | 重写后的指令 |
|---|---|
| 对象生成 | Generate a white rose with a blue center in the masked region. |
| 图像延展 | Extend the image into the masked region to create a scene featuring... |
| 背景填充 | Create the following background in the masked region: A vast ocean extending to horizon. |
| 氛围填充 | Fill the background masked area with a clear, bright blue sky with wispy clouds. |
| 主体修复 | Restore the area in the mask with a young woman. |
| 环境填充 | Create inside the masked area: a greenhouse with rows of plants under glass ceiling. |
保真度规则
标准编辑模式
除非编辑指令明确要求变更,否则必须保留所有视觉属性:
- 主体身份、姿态、外观
- 对象的存在性、位置、尺寸、朝向
- 构图、相机角度、镜头特性
- 风格/媒介类型
仅严格按编辑指令所要求的内容进行更改。
掩码编辑模式
- 精确保留所有可见(未掩码)区域
- 填充灰色掩码区域,使其与未掩码区域无缝融合
- 匹配现有风格、光照与主题内容
- 禁止描述灰色掩码本身——应描述将填充掩码区域的内容
示例输出
{
"short_description": "A professional businesswoman in a navy blazer stands confidently in a modern glass office, holding a tablet. Natural daylight streams through floor-to-ceiling windows, creating a warm, productive atmosphere.",
"objects": [
{
"description": "A confident businesswoman in her 30s with shoulder-length dark hair, wearing a tailored navy blazer over a white blouse. She holds a tablet in her left hand while gesturing naturally with her right.",
"location": "center-right",
"relative_size": "large within frame",
"shape_and_color": "Human figure, navy and white clothing",
"texture": "smooth fabric, professional attire",
"appearance_details": "Minimal jewelry, well-groomed professional appearance",
"relationship": "Main subject, interacting with tablet",
"orientation": "facing slightly left, three-quarter view",
"pose": "Standing upright, relaxed professional stance",
"expression": "confident, approachable smile",
"clothing": "Tailored navy blazer, white silk blouse, dark trousers",
"action": "Presenting or reviewing information on tablet",
"gender": "female",
"skin_tone_and_texture": "Medium warm skin tone, healthy smooth complexion"
},
{
"description": "A modern tablet device with a bright display showing charts and graphs",
"location": "center, held by subject",
"relative_size": "small",
"shape_and_color": "Rectangular, silver frame with illuminated screen",
"texture": "smooth glass and metal",
"appearance_details": "Thin profile, business application visible on screen",
"relationship": "Held by businesswoman, focus of her attention",
"orientation": "vertical, screen facing viewer at slight angle",
"pose": null,
"expression": null,
"clothing": null,
"action": null,
"gender": null,
"skin_tone_and_texture": null,
"number_of_objects": null
}
],
"background_setting": "Modern corporate office interior with floor-to-ceiling windows overlooking a city skyline. Minimalist furniture in neutral tones, potted plants adding touches of green.",
"lighting": {
"conditions": "bright natural daylight",
"direction": "side-lit from left through windows",
"shadows": "soft, natural shadows"
},
"aesthetics": {
"composition": "rule of thirds, medium shot",
"color_scheme": "professional blues and neutral whites with warm accents",
"mood_atmosphere": "confident, professional, welcoming"
},
"photographic_characteristics": {
"depth_of_field": "shallow, background slightly soft",
"focus": "sharp focus on subject's face and upper body",
"camera_angle": "eye-level",
"lens_focal_length": "portrait lens (85mm)"
},
"style_medium": "photograph",
"artistic_style": "realistic",
"context": "Corporate portrait photography for company website or LinkedIn professional profile.",
"text_render": [],
"edit_instruction": "Generate a professional businesswoman in a modern office environment holding a tablet."
}
常见错误
- 不虚构文字 —— 仅当用户提供确切文本时才填写
text_render,否则保持为空 - 不过度描述 —— 最多定义 5 个对象,优先描述最重要的对象
- 匹配对应模式 —— 掩码编辑与标准编辑须使用各自对应的
edit_instruction格式 - 保持保真度 —— 仅修改指令中明确要求的部分
- 保持具体性 —— 使用明确值(如 “85mm portrait lens”),避免模糊表述(如 “nice camera”)
- 无关字段置为 null —— 非人物对象的专属字段(如
pose、expression等)应设为null
curl 示例
curl -X POST "https://engine.prod.bria-api.com/v2/image/generate"
-H "api_token: $BRIA_API_KEY"
-H "Content-Type: application/json"
-d '{
"structured_prompt": "{"short_description": "...", ...}",
"prompt": "Generate this scene",
"aspect_ratio": "16:9"
}'
参考资料
- Schema Reference —— 完整 JSON Schema,含全部参数可选值
- bria-ai —— 执行 VGL 提示的 API 客户端与端点文档
热门AI工具
相关专题
本专题介绍Gradle插件开发的基本流程,涵盖插件类编写、自定义任务注册、扩展参数设计和插件应用方法,帮助你理解插件如何组织构建逻辑,减少多个项目之间的重复配置。
0
2026.10.22
本专题介绍Gradle Wrapper的基本作用,涵盖文件组成、生成方法、版本配置和任务调用,帮助你理解项目如何使用指定的Gradle版本,减少不同开发环境带来的构建差异。
0
2026.10.22
本专题整理Golangci-lint常用Linters的用途与配置方法,覆盖错误处理、无效代码、安全、复杂度、命名和依赖检查,帮助项目合理选规则。
0
2026.10.22
本专题介绍Gradle Java项目构建方法,涵盖Java插件配置、依赖声明、源码编译、测试执行和打包检查,帮助你理解各阶段的任务关系,逐步完成项目构建。
0
2026.10.22
本专题汇总PHP常见时间戳漏洞,包括2038年溢出、时区漂移、时间戳伪造、重放攻击、时间盲注与日志审计失效等,并给出升级64位环境、使用 DateTimeImmutable、统一UTC、严格超时校验、预处理绑定、hash_equals 比对等修复方案,帮助开发者快速排查和加固时间相关代码。
0
2026.10.22
本专题聚焦Golangci-lint YAML配置文件,讲清运行参数、规则启停、目录排除、问题过滤及严重级别设置,便于团队统一检查标准。
0
2026.10.22
本专题讲解Golangci-lint的安装、初始化、基础命令和首次代码检查,覆盖本地环境、Docker及多平台用法,帮助Go开发者快速上手。
0
2026.10.22
PHP2Shell漏洞是什么,哪些PHP版本和运行环境会受到影响,服务器应该如何检测与修复?本专题提供版本自查脚本、Linux与Docker升级命令、PHP-FPM和Apache排查步骤,以及修复验证、临时缓解和应急响应方案。
0
2026.10.22
热门下载
相关下载
精品课程
共6课时 | 12.1万人学习
共79课时 | 161.5万人学习
共6课时 | 54.7万人学习
