Task Router Skill
Task Router
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install bowen-dotcom/aisa-media-gen-skill打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
用 AIsa API 一把钥匙生成图片与视频:
gemini-3-pro-image-preview(Gemini GenerateContent)wan2.6-t2v(通义万相 / Qwen Wan 2.6,异步任务)API 文档索引见 AIsa API Reference(可从 https://aisa.mintlify.app/llms.txt 找到所有页面)。
"生成一张赛博朋克风格的城市夜景,霓虹灯,雨夜,电影感"
"用一张参考图生成 5 秒镜头:镜头缓慢推进,风吹动头发,电影感,浅景深"
export AISA_API_KEY="your-key"
https://api.aisa.one/v1
POST /models/{model}:generateContent
文档:google-gemini-chat(GenerateContent)见 https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md。
curl -X POST "https://api.aisa.one/v1/models/gemini-3-pro-image-preview:generateContent" \
-H "Authorization: Bearer $AISA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents":[
{"role":"user","parts":[{"text":"A cute red panda, ultra-detailed, cinematic lighting"}]}
]
}'
说明:该接口的响应中可能出现
candidates[].parts[].inline_data(通常包含 base64 数据与 mime 类型);客户端脚本会自动解析并保存文件。
https://api.aisa.one/apis/v1
POST /services/aigc/video-generation/video-synthesis
X-DashScope-Async: enable(必填,异步)文档:video-generation 见 https://aisa.mintlify.app/api-reference/aliyun/video/video-generation.md。
curl -X POST "https://api.aisa.one/apis/v1/services/aigc/video-generation/video-synthesis" \
-H "Authorization: Bearer $AISA_API_KEY" \
-H "Content-Type: application/json" \
-H "X-DashScope-Async: enable" \
-d '{
"model":"wan2.6-t2v",
"input":{
"p...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
使用 AIsa API 生成图片与视频:
gemini-3-pro-image-preview(/v1/models/{model}:generateContent)wan2.6-t2v(/apis/v1/services/aigc/... 异步任务 + 轮询)相关 API 文档索引:https://aisa.mintlify.app/api-reference/introduction
export AISA_API_KEY="your-key"
python scripts/media_gen_client.py image \
--prompt "A cute red panda, cinematic lighting" \
--out out.png
python scripts/media_gen_client.py video-create \
--prompt "cinematic close-up, slow push-in" \
--img-url "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg" \
--duration 5
python scripts/media_gen_client.py video-wait \
--task-id <task_id> \
--poll 10 \
--timeout 600
python scripts/media_gen_client.py video-wait \
--task-id <task_id> \
--download \
--out out.mp4
# OpenClaw Media Gen 🎬
用 AIsa API 一把钥匙生成**图片**与**视频**:
- **图片**:`gemini-3-pro-image-preview`(Gemini GenerateContent)
- **视频**:`wan2.6-t2v`(通义万相 / Qwen Wan 2.6,异步任务)
API 文档索引见 [AIsa API Reference](https://aisa.mintlify.app/api-reference/introduction)(可从 `https://aisa.mintlify.app/llms.txt` 找到所有页面)。
## 🔥 你可以做什么
### 图片生成(Gemini)
```
"生成一张赛博朋克风格的城市夜景,霓虹灯,雨夜,电影感"
```
### 视频生成(Wan 2.6)
```
"用一张参考图生成 5 秒镜头:镜头缓慢推进,风吹动头发,电影感,浅景深"
```
## Quick Start
```bash
export AISA_API_KEY="your-key"
```
---
## 🖼️ Image Generation (Gemini)
### Endpoint
- Base URL: `https://api.aisa.one/v1`
- `POST /models/{model}:generateContent`
文档:`google-gemini-chat`(GenerateContent)见 `https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md`。
### curl 示例(返回 inline_data 时为图片)
```bash
curl -X POST "https://api.aisa.one/v1/models/gemini-3-pro-image-preview:generateContent" \
-H "Authorization: Bearer $AISA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents":[
{"role":"user","parts":[{"text":"A cute red panda, ultra-detailed, cinematic lighting"}]}
]
}'
```
> 说明:该接口的响应中可能出现 `candidates[].parts[].inline_data`(通常包含 base64 数据与 mime 类型);客户端脚本会自动解析并保存文件。
---
## 🎞️ Video Generation (Qwen Wan 2.6 / Tongyi Wanxiang)
### Create task
- Base URL: `https://api.aisa.one/apis/v1`
- `POST /services/aigc/video-generation/video-synthesis`
- Header:`X-DashScope-Async: enable`(必填,异步)
文档:`video-generation` 见 `https://aisa.mintlify.app/api-reference/aliyun/video/video-generation.md`。
```bash
curl -X POST "https://api.aisa.one/apis/v1/services/aigc/video-generation/video-synthesis" \
-H "Authorization: Bearer $AISA_API_KEY" \
-H "Content-Type: application/json" \
-H "X-DashScope-Async: enable" \
-d '{
"model":"wan2.6-t2v",
"input":{
"p...## OpenClaw Media Gen
使用 AIsa API 生成图片与视频:
- **Gemini 图片**:`gemini-3-pro-image-preview`(`/v1/models/{model}:generateContent`)
- **Wan 2.6 视频**:`wan2.6-t2v`(`/apis/v1/services/aigc/...` 异步任务 + 轮询)
相关 API 文档索引:[`https://aisa.mintlify.app/api-reference/introduction`](https://aisa.mintlify.app/api-reference/introduction)
### 快速开始
```bash
export AISA_API_KEY="your-key"
```
### 生成图片
```bash
python scripts/media_gen_client.py image \
--prompt "A cute red panda, cinematic lighting" \
--out out.png
```
### 生成视频(创建任务 + 轮询)
```bash
python scripts/media_gen_client.py video-create \
--prompt "cinematic close-up, slow push-in" \
--img-url "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg" \
--duration 5
python scripts/media_gen_client.py video-wait \
--task-id <task_id> \
--poll 10 \
--timeout 600
```
### 自动下载生成的视频(mp4)
```bash
python scripts/media_gen_client.py video-wait \
--task-id <task_id> \
--download \
--out out.mp4
```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.