Task Router Skill
Task Router
使用 Seedream 4.5 模型生成或编辑图像。当用户想要文生图、图生图、图像编辑,或提到 seedream、字节跳动图像生成时使用此 skill。
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install hexiaochun/seedream-imageInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
使用字节跳动 Seedream 4.5 模型进行文生图和图生图(图像编辑)。
| 模型 ID | 功能 | 说明 |
|---|---|---|
fal-ai/bytedance/seedream/v4.5/text-to-image |
文生图 | 根据提示词生成图像 |
fal-ai/bytedance/seedream/v4.5/edit |
图生图 | 基于参考图进行编辑 |
使用 MCP 工具 submit_task 提交任务:
{
"model_id": "fal-ai/bytedance/seedream/v4.5/text-to-image",
"parameters": {
"prompt": "用户的提示词",
"image_size": "auto_2K",
"num_images": 1
}
}
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| prompt | string | 是 | - | 图像生成提示词 |
| image_size | string | 否 | auto_2K | 尺寸预设 |
| num_images | integer | 否 | 1 | 生成数量 (1-6) |
| seed | integer | 否 | - | 随机种子 |
| enable_safety_checker | boolean | 否 | true | 安全检查 |
auto_2K - 自动 2K(默认)auto_4K - 自动 4K(高清)square_hd - 正方形高清square - 正方形portrait_4_3 - 竖版 4:3portrait_16_9 - 竖版 16:9landscape_4_3 - 横版 4:3landscape_16_9 - 横版 16:9{
"model_id": "fal-ai/bytedance/seedream/v4.5/edit",
"parameters": {
"prompt": "将 Figure 1 的背景换成海滩",
"image_urls": ["https://example.com/input.jpg"],
"image_size": "auto_2K"
}
}
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| prompt | string | 是 | - | 编辑提示词,可用 Figure 1/2/3 引用图片 |
| image_urls | array | 是 | - | 输入图片 URL 列表 (1-10 张) |
| image_size | string | 否 | auto_2K | 尺寸预设 |
| num_images | integer | 否 | 1 | 生成数量 (1-6) |
| seed | integer | 否 | - | 随机种子 |
| enable_safety_checker | boolean | 否 | true | 安全检查 |
提示词中可以用 Figure 1、Figure 2 等引用 image_urls 中的图片:
{
"prompt": "将 Figure 1 中...
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# Seedream 4.5 图像生成
使用字节跳动 Seedream 4.5 模型进行文生图和图生图(图像编辑)。
## 可用模型
| 模型 ID | 功能 | 说明 |
|--------|------|------|
| `fal-ai/bytedance/seedream/v4.5/text-to-image` | 文生图 | 根据提示词生成图像 |
| `fal-ai/bytedance/seedream/v4.5/edit` | 图生图 | 基于参考图进行编辑 |
## 文生图工作流
### 1. 调用 submit_task
使用 MCP 工具 `submit_task` 提交任务:
```json
{
"model_id": "fal-ai/bytedance/seedream/v4.5/text-to-image",
"parameters": {
"prompt": "用户的提示词",
"image_size": "auto_2K",
"num_images": 1
}
}
```
### 文生图参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|-----|------|-----|-------|------|
| prompt | string | **是** | - | 图像生成提示词 |
| image_size | string | 否 | auto_2K | 尺寸预设 |
| num_images | integer | 否 | 1 | 生成数量 (1-6) |
| seed | integer | 否 | - | 随机种子 |
| enable_safety_checker | boolean | 否 | true | 安全检查 |
### image_size 可选值
- `auto_2K` - 自动 2K(默认)
- `auto_4K` - 自动 4K(高清)
- `square_hd` - 正方形高清
- `square` - 正方形
- `portrait_4_3` - 竖版 4:3
- `portrait_16_9` - 竖版 16:9
- `landscape_4_3` - 横版 4:3
- `landscape_16_9` - 横版 16:9
---
## 图生图(图像编辑)工作流
### 1. 调用 submit_task
```json
{
"model_id": "fal-ai/bytedance/seedream/v4.5/edit",
"parameters": {
"prompt": "将 Figure 1 的背景换成海滩",
"image_urls": ["https://example.com/input.jpg"],
"image_size": "auto_2K"
}
}
```
### 图生图参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|-----|------|-----|-------|------|
| prompt | string | **是** | - | 编辑提示词,可用 Figure 1/2/3 引用图片 |
| image_urls | array | **是** | - | 输入图片 URL 列表 (1-10 张) |
| image_size | string | 否 | auto_2K | 尺寸预设 |
| num_images | integer | 否 | 1 | 生成数量 (1-6) |
| seed | integer | 否 | - | 随机种子 |
| enable_safety_checker | boolean | 否 | true | 安全检查 |
### 多图引用语法
提示词中可以用 `Figure 1`、`Figure 2` 等引用 `image_urls` 中的图片:
```json
{
"prompt": "将 Figure 1 中...Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.