
云原生后端运维【免费下载链接】TerminusOpen-Source Personal Cloud OS for Always-On Agents项目地址https://gitcode.com/gh_mirrors/terminus2/Terminus点击查看免费下载FlowStudio 是 Olares 平台上的 AI 创作应用提供现成的生成工作流让你用统一的交互方式完成文生图、图片编辑和视频生成。本文以一张海岸汽车海报为贯穿案例带你走完「文生图 → 图片编辑 → 双图生视频 → 参考素材生视频」的完整创作链路并讲解如何通过 Lares 对话与 Olares Router 网关间接调用 FlowStudio 的能力同时结合仓库源码说明工作流场景的底层安装机制。选择创作方式FlowStudio 提供两种创作入口直接在 FlowStudio 界面中创作或让 AI 助手 Lares 通过 Router 调用其能力。方式操作方式教程在 FlowStudio 中创作在 FlowStudio 中选择场景输入提示词、提供所需素材并配置生成参数在 FlowStudio 中生成图片和视频通过 Lares 创作在对话中描述需求由 Lares 通过 Router 调用可用的 FlowStudio 能力通过 Lares 使用 FlowStudio无论选择哪种方式核心的生成工作流都由 FlowStudio 执行。差别只在于入口直接创作时你手动操作每个参数通过对话创作时Lares 负责理解需求、Router 负责路由请求而 FlowStudio 始终是执行方。:::warning 避免同时运行 FlowStudio 生成任务和 Qwen3.8-27B 对话 在 Lares 中使用 Qwen3.8-27B (llama.cpp) 时请等待直接在 FlowStudio 中启动的图片或视频生成任务完成再发送消息。同时运行两者可能导致显存冲突使模型无法响应。 :::应用如何协作无论直接在 FlowStudio 中创作还是通过 Lares 发起请求生成工作流都由 FlowStudio 执行。Lares 提供对话界面通过 Router 发送请求。使用任一方式前都需要在 FlowStudio 中创建所需场景并等待模型下载和初始化完成。应用职责FlowStudio准备工作流场景执行图片和视频生成任务Router将 FlowStudio 的能力提供给 Lares并路由生成请求Lares使用大语言模型理解需求调用可用的生成能力从 Olares Router 的架构视角看FlowStudio 属于 Router 的Creative创意能力类别——与 LLM、Audio、Tools 并列的四大能力类别之一涵盖文生图、文生视频、音乐生成等负载。Router 作为平台内置的 AI 网关把所有 AI 能力统一暴露在单一接入层下来自 Olares 内部应用的请求由平台自动打上X-Olares-App-ID身份头来自登录用户的请求打上X-BFL-USER头第三方调用则需携带 Router 签发的 API Key。Lares 正是通过这一层拿到 FlowStudio 的生成能力因此你无需为每次对话单独配置模型连接。工作流场景的底层实现从源码看选择一个工作流创建场景并不是一个轻量操作而是一次完整的工作流部署。仓库 framework/app-service/pkg/workflowinstaller/workflow_cfg.go 中定义了WorkflowConfig结构包含工作流的命名空间、Helm Chart 名称、仓库地址、标题、版本、应用名与安装者等信息type WorkflowConfig struct { Namespace string ChartsName string RepoURL string Title string Version string WorkflowName string // name of application displayed on shortcut OwnerName string // name of owner who installed application Cfg *appcfg.AppConfiguration }而 framework/app-service/pkg/workflowinstaller/installer.go 中的Install函数展示了安装流程先通过 Helm 客户端检查工作流是否已安装未安装时基于WorkflowConfig中的 Chart 信息执行helmClient.Install最后通过 Argo 更新工作流状态。这印证了文档中「FlowStudio 会为你准备所需的模型和运行环境」的说法——每个场景本质上是一个由 Helm Chart 描述的完整运行环境创建场景就是拉起这套环境因此需要等待模型下载和初始化完成。安装 FlowStudio 与素材上传要求安装应用使用 FlowStudio 前需要先在 Olares 中安装它打开 Market应用市场搜索「FlowStudio」。点击Get然后点击Install等待安装完成。如果此前已安装过 FlowStudio请先更新至最新版本再继续。除 FlowStudio 本身外通过对话创作还要求从 Market 安装 Router 和 Lares详见下文「通过 Lares 对话创作」一节。系统要求 Olares OS 1.12.7 或更高版本。上传素材要求FlowStudio 的生成任务支持上传多种素材每个上传文件的大小不能超过64 MB素材类型支持的格式图片PNG、JPG、WEBP、GIF 和 BMP。HEIC 和 AVIF 图片会在上传时自动转换为 WebP视频MP4、WEBM、MOV、M4V、AVI 和 MKV音频MP3、WAV、FLAC、OGG、M4A 和 AAC文生图Qwen-Image 2.1 NVFP4 · Text to Image使用Qwen-Image 2.1 NVFP4 · Text to Image工作流可以根据文字提示词生成图片支持文字渲染、写实纹理、精细细节和透明背景。准备场景打开 FlowStudio进入Workflow Plaza工作流广场选择Image分类。搜索Qwen-Image 2.1然后选择Qwen-Image 2.1 NVFP4 · Text to Image。查看Pre-run checks运行前检查。显示Checks passed后点击Create scene创建场景。:::tip GPU 显存不足 如果检查提示 GPU 显存不足请停止其他占用大量 GPU 资源的应用或取消为其分配 GPU 资源然后重新检查。 :::右侧会打开Initialization progress初始化进度面板。等待显示Init finished初始化完成。配置并生成图片打开CreateScenes然后选择Qwen-Image 2.1 NVFP4 · Text to Image。输入提示词。以下示例生成一张红色复古汽车海岸海报标题为「TIMELESS DRIVE」Create a cinematic automotive travel poster. A cherry-red vintage two-door coupe is parked at a scenic coastal overlook, shown in full from a low front three-quarter angle, with its front pointing left. Position the car across the lower center of the frame. Show finely detailed chrome trim, realistic tire tread, silver alloy wheels, subtle leather upholstery visible through the windows, and reflections of the sky and coastline in the glossy paint. In the middle distance, a winding road follows rugged cliffs past a small seaside village with colorful facades. A weathered stone wall borders the overlook. In the foreground, textured pavement and a few tufts of coastal grass add detail. Beyond the cliffs, turquoise water reveals submerged rocks, with white surf along the shore. Late-afternoon sunlight creates warm highlights on the car, cool shadows, and atmospheric depth in the distant coastline. Keep the car sharply defined and the background slightly softer, but recognizable. Place the exact headline TIMELESS DRIVE in elegant, clearly legible ivory uppercase letters in the upper-left sky area. Keep the headline modest in size and clear of the car and village. Photorealistic automotive photography with refined travel-poster typography. No people, brand logos, or additional text.:::tip 生成透明背景的图片 要生成透明背景的图片请在提示词中明确要求生成带有 alpha 通道和透明背景的 RGBA 图片。例如This is an RGBA image with transparency. The image has an alpha channel and a transparent background. A small red vintage toy car, shown in full from a front three-quarter angle, with glossy paint, silver wheels, and chrome trim. Center the car with space around it.:::点击Parameters配置图片参数参数设置Aspect ratio宽高比。本例选择16:9Megapixels输出分辨率从列表中选择Batch批量生成数量。本例选择1点击Generate等待任务完成。打开生成的图片查看细节。将鼠标悬停在生成的图片上点击下载图标。下一部分会用到这张红车图片。图片编辑Qwen-Image 2.1 NVFP4 · Image Edit使用Qwen-Image 2.1 NVFP4 · Image Edit工作流可以通过文字指令修改已有图片同时保留主体的特征和视觉细节。准备场景打开 FlowStudio进入Workflow Plaza选择Image分类。搜索Qwen-Image 2.1然后选择Qwen-Image 2.1 NVFP4 · Image Edit。查看Pre-run checks。显示Checks passed后点击Create scene。右侧会打开Initialization progress面板。等待显示Init finished。值得注意的是Text to Image 和 Image Edit 使用相同的三个模型文件。模型库中已安装的模型会直接复用不会重复下载——这也是为什么连续创建多个 Qwen-Image 场景时初始化速度会更快。配置并编辑图片本例使用上一部分生成的红车海报让模型只修改汽车的漆面颜色。打开CreateScenes然后选择Qwen-Image 2.1 NVFP4 · Image Edit。点击Parameters配置图片参数参数设置Editable image待编辑图片。点击Choose reference然后选择Upload上传要编辑的图片。本例使用上一部分生成的红车图片Aspect ratio无需调整。无论此项如何设置输出都会沿用输入图片的宽高比Megapixels输出分辨率从列表中选择Batch批量生成数量。本例选择1输入提示词。以下示例将汽车漆面从红色改为蓝色Change only the cars red paint to a rich metallic blue. Preserve the cars body shape, chrome trim, wheels, windows, and interior. Keep the coastal village, sea, mountains, road, camera angle, and composition unchanged. Preserve the exact text TIMELESS DRIVE in its original position and style. Maintain the warm late-afternoon lighting, with natural highlights and reflections on the new blue paint.点击Generate。任务完成后打开编辑后的图片检查所要求的修改是否已生效。将鼠标悬停在编辑后的图片上点击下载图标。下一部分会用到这张蓝车图片。双图生视频FastVideo FastH3 · Image to Video使用FastVideo FastH3: Image to Video工作流可以通过一张起始图片和一张可选的结束图片生成带声音的视频。本例使用蓝车图片作为起始图片、红车图片作为结束图片提示词要求汽车向前行驶同时漆面从蓝色变为红色。准备场景打开 FlowStudio进入Workflow Plaza选择Video分类。搜索FastVideo FastH3然后选择FastVideo FastH3: Image to Video。查看Pre-run checks。显示Checks passed后点击Create scene。右侧会打开Initialization progress面板。等待显示Init finished。配置并生成视频打开CreateScenes然后选择FastVideo FastH3: Image to Video。点击Parameters配置视频参数参数设置First frame起始图片必填。点击Choose image上传输出会沿用这张图片的宽高比。本例使用蓝车图片Last frame结束图片可选。请使用与起始图片相同的宽高比避免拉伸或裁切。本例使用红车图片Megapixels输出分辨率。本例选择480p。可选分辨率为 360p、480p、540p 和 720p默认为 480pDuration视频时长。本例设为5秒。支持 2–15 秒默认为 5 秒输入提示词。如需指定声音可以在提示词中描述对白、音效或音乐。以下示例要求汽车向前行驶同时漆面从蓝色变为红色Create a continuous tracking shot, starting with the blue car in the first frame and ending with the red car in the last frame. The car drives slowly forward along the coastal road, toward the left side of the scene. Its wheels rotate naturally. The camera tracks alongside it at the same speed, keeping the car at a consistent size and position in the frame while the road and coastal scenery move gently behind it. As the car moves, its paint gradually changes from metallic blue to the red shown in the last frame. Complete the color transition by the end of the clip. Preserve the cars body shape and details. Maintain warm late-afternoon lighting and realistic reflections. Keep the TIMELESS DRIVE headline fixed and legible as a screen overlay. Smooth motion, no cuts, no sudden acceleration, and no body deformation.点击Generate等待任务完成。以下是生成的示例视频下载示例视频。下载生成的视频作为下一部分的参考素材。参考素材生视频MiniMax H3 NVFP4 · Reference to Audio-Video使用MiniMax H3 NVFP4 · Reference to Audio-Video工作流可以通过参考图片、视频或音频生成带声音的视频。本例使用红车图片和此前生成的视频制作一段汽车从相框驶到桌面上的广告短片。准备场景和参考素材打开 FlowStudio进入Workflow Plaza选择Video分类。搜索MiniMax H3然后选择MiniMax H3 NVFP4 · Reference to Audio-Video。查看Pre-run checks。显示Checks passed后点击Create scene。右侧会打开Initialization progress面板。等待显示Init finished。配置参考素材打开CreateScenes然后选择MiniMax H3 NVFP4 · Reference to Audio-Video。点击Parameters配置视频参数参数设置Reference image group参考图片组最多添加 3 张。图片会缩放至输出分辨率。本例点击添加按钮选择原始红车图片Reference videos参考视频可选。添加一个 2–15 秒、包含画面的视频超出输出时长的部分会被截去原声会自动用作音频参考。本例选择上一部分生成的视频Reference audio参考音频可选。添加一段 2–15 秒的音频音频不会被截断越长的音频占用越多 GPU 显存、处理也越慢。本例留空Aspect ratio宽高比。选择16:9 (Widescreen)与海报的横向构图一致Megapixels输出分辨率。选择480p这是参考素材生成视频的默认及推荐分辨率Frame rate帧率。保持24fps。修改此值会改变播放速度和实际视频时长而不会增加帧数Duration时长。本例设为5秒。支持 2–15 秒默认为 5 秒。考虑 GPU 显存占用遵循以下建议使用参考视频时输出时长保持在 5 秒以内避免耗尽 GPU 显存仅使用图片和音频参考、不使用参考视频时可选择最长 15 秒Quick Generation快速生成。保持开启可快速预览关闭后可获得更高质量但生成速度较慢输入提示词并生成视频输入提示词。以下示例要求红车从相框中驶出变成一辆迷你汽车Create a playful 5-second miniature car commercial. Use the uploaded image as the artwork inside a framed picture and as the reference for the red vintage car. Use the uploaded video only for the cars driving motion and rotating wheels. A framed picture of the red car on a coastal road stands upright on a wooden desk. The camera faces the frame at a slight angle. The car comes to life inside the picture. It drives toward the viewer and physically crosses the frames lower edge: first the front bumper, then the front wheels, followed by the body and rear wheels. As it emerges, it becomes a solid miniature car on the desk. The camera gently pulls back to keep the entire car and frame visible. The car rolls forward and stops on the desk, fully outside the frame. The coastal landscape stays inside the picture, with no car remaining in it. Keep the car red throughout. The frame stays upright and stationary. One continuous shot with warm afternoon lighting. No cuts, no duplicate cars, and no added text. Add a tiny engine rev, a soft tap as the wheels touch the wooden desk, and a playful musical finish. No dialogue.点击Generate等待任务完成。播放视频查看效果。以下是生成的示例视频下载示例视频。通过 Lares 对话创作如果你不想手动配置每个参数可以通过 Lares 的对话界面直接描述需求由 Lares 通过 Router 调用 FlowStudio 的生成能力。前置条件使用对话创作前需要满足Olares OS 1.12.7 或更高版本。已从 Market 安装 FlowStudio、Router 和 Lares已安装的应用需更新至最新可用版本。已安装 Qwen3.8-27B (llama.cpp)并完成模型下载。已创建所需的 FlowStudio 场景并完成模型下载和初始化。具体操作请参阅在 FlowStudio 中生成图片和视频。:::warning 重要一次只运行一个任务 在 Olares One 上运行 Qwen3.8-27B (llama.cpp) 时建议一次只处理一个请求以在 102K 上下文窗口和当前模型精度下获得最佳体验。 ::::::warning 避免同时运行 FlowStudio 生成任务和 Qwen3.8-27B 对话 在 Lares 中使用 Qwen3.8-27B (llama.cpp) 时请等待直接在 FlowStudio 中启动的图片或视频生成任务完成再发送消息。同时运行两者可能导致显存冲突使模型无法响应。 :::开始使用打开 Lares选择Qwen3.8-27B (llama.cpp)并确认权限级别。先询问 Lares 当前有哪些可用的图片和视频生成能力What image and video generation capabilities are currently available through FlowStudio?查看可用能力然后描述你想创作的内容。如果需要使用特定的生成模型请在提示词中写明模型名称否则让 Lares 根据需求和可用模型进行选择。通过对话生成图片描述你想生成的图片。以下示例指定了生成模型Use Qwen-Image 2.1 NVFP4 · Text to Image to generate a 16:9 automotive poster. Show a red vintage coupe on a coastal road, with a seaside village and turquoise sea in the background. Use warm late-afternoon lighting and add the headline TIMELESS DRIVE.等待生成完成然后打开图片查看效果。通过对话生成视频描述你想要的场景、动作和声音。以下示例由 Lares 选择可用的生成模型Generate a 5-second video at 480p. A red vintage coupe drives slowly along a coastal road at sunset. The camera tracks alongside it, keeping the whole car visible as its wheels turn. Add a gentle engine sound and soft instrumental music. No dialogue or text.等待生成完成然后播放视频查看效果。GPU 显存管理注意事项FlowStudio 的生成工作流是典型的显存密集型任务几个关键约束值得提前规划运行前检查是显存的第一道防线创建场景前的Pre-run checks会检查 GPU 显存是否足够若提示不足请先停止其他占用大量 GPU 资源的应用或取消为其分配 GPU 资源再重新检查。生成任务与本地对话模型互斥使用 Qwen3.8-27B (llama.cpp) 时务必等待 FlowStudio 中已启动的生成任务完成再发送消息否则显存冲突会导致模型无响应。参考素材的显存成本参考视频模式下输出时长建议控制在 5 秒以内参考音频不会被截断越长的音频占用越多显存。仅在图片 音频参考无参考视频时才可考虑最长 15 秒的输出。单任务运行在 Olares One 上运行 Qwen3.8-27B 时一次只处理一个请求以在 102K 上下文窗口与模型精度下获得最佳体验。了解更多FlowStudio 概览了解 FlowStudio 的两种创作方式与三应用协作机制。Lares开始使用 Olares 官方 AI 助手了解其基于 Router 的模型路由与权限控制机制。Olares Router了解 Olares 内置 AI 网关的架构、能力分类与调用认证方式。在 FlowStudio 中生成图片和视频直接使用场景并准备示例素材。赞分享云原生后端运维【免费下载链接】TerminusOpen-Source Personal Cloud OS for Always-On Agents项目地址https://gitcode.com/gh_mirrors/terminus2/Terminus点击查看免费下载相关推荐Olares FlowStudio 实战指南用 Qwen-Image 2.1、FastVideo 与 MiniMax 生成图片与视频Olares FlowStudio 实战指南用 Qwen Image 2.1、FastVideo 与 MiniMax 生成图片与视频 本文基于 Olares云原生后端运维在 Olares FlowStudio 中生成与编辑图片、制作视频Qwen-Image 2.1 与 FastVideo/MiniMax H3 工作流实战在 Olares FlowStudio 中生成与编辑图片、制作视频Qwen Image 2.1 与 FastVideo/MiniMax H3 工作流实战 Fl云原生后端运维在 Olares 上通过 Lares 对话调用 FlowStudio图像与视频生成实战指南在 Olares 上通过 Lares 对话调用 FlowStudio图像与视频生成实战指南 本篇指南面向 OlaresTerminus 开源个人云操作系统云原生后端运维上一篇【亲测免费】 推荐使用React Antd Admin —— 高效的React企业级管理平台模板下一篇推荐使用Amazon Selling Partner API Models开启卖家平台开发新旅程创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考