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 chaimengphp/openclaw-aisa-media-gen打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Generate images and videos with one AIsa API key:
gemini-3-pro-image-preview (Gemini GenerateContent)wan2.6-t2v (Qwen Wan 2.6 / Tongyi Wanxiang, async task)API Reference: AIsa API Reference (all pages available at https://aisa.mintlify.app/llms.txt)
| Resolution | AIsa (Contract) | AIsa (Official) | Bailian (Official) | OpenRouter |
|---|---|---|---|---|
| 720P | $0.06/sec | ~$0.08 | ~$0.10 | ❌ |
| 1080P | $0.09/sec | ~$0.12 | ~$0.15 | ❌ |
| Pro/Animate | $0.108–0.156 | ~$0.18 | ~$0.25 | ❌ |
Key Benefits:
"Generate a cyberpunk cityscape at night, neon lights, rainy, cinematic"
"Use a reference image to generate a 5-second shot: slow camera push-in, wind blowing hair, cinematic, shallow depth of field"
export AISA_API_KEY="your-key"
https://api.aisa.one/v1
POST /models/{model}:generateContent
Documentation: google-gemini-chat (GenerateContent) at 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-detail...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
Generate images and videos using AIsa API:
gemini-3-pro-image-preview (/v1/models/{model}:generateContent)wan2.6-t2v (/apis/v1/services/aigc/... async task + polling)API Documentation: https://aisa.mintlify.app/api-reference/introduction
| Resolution | AIsa (Contract) | AIsa (Official) | Bailian (Official) | OpenRouter |
|---|---|---|---|---|
| 720P | $0.06/sec | ~$0.08 | ~$0.10 | ❌ |
| 1080P | $0.09/sec | ~$0.12 | ~$0.15 | ❌ |
| Pro/Animate | $0.108–0.156 | ~$0.18 | ~$0.25 | ❌ |
Competitive Advantage: AIsa offers the lowest pricing for WAN video generation with contract rates, and remains competitive even at official pricing. OpenRouter does not currently support video generation.
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 🎬
Generate **images** and **videos** with one AIsa API key:
- **Image**: `gemini-3-pro-image-preview` (Gemini GenerateContent)
- **Video**: `wan2.6-t2v` (Qwen Wan 2.6 / Tongyi Wanxiang, async task)
API Reference: [AIsa API Reference](https://aisa.mintlify.app/api-reference/introduction) (all pages available at `https://aisa.mintlify.app/llms.txt`)
## 🎯 Pricing Advantage
### Video Generation (WAN) - Cost Comparison
| Resolution | AIsa (Contract) | AIsa (Official) | Bailian (Official) | OpenRouter |
|------------|-----------------|-----------------|-------------------|------------|
| 720P | **$0.06/sec** | ~$0.08 | ~$0.10 | ❌ |
| 1080P | **$0.09/sec** | ~$0.12 | ~$0.15 | ❌ |
| Pro/Animate | **$0.108–0.156** | ~$0.18 | ~$0.25 | ❌ |
**Key Benefits**:
- **25-40% cheaper** than Bailian official pricing
- **OpenRouter doesn't support video** - AIsa is the only unified API with video generation
- Contract pricing available for production workloads
- Single API key for both image and video generation
## 🔥 What You Can Do
### Image Generation (Gemini)
```
"Generate a cyberpunk cityscape at night, neon lights, rainy, cinematic"
```
### Video Generation (Wan 2.6)
```
"Use a reference image to generate a 5-second shot: slow camera push-in, wind blowing hair, cinematic, shallow depth of field"
```
## Quick Start
```bash
export AISA_API_KEY="your-key"
```
---
## 🖼️ Image Generation (Gemini)
### Endpoint
- Base URL: `https://api.aisa.one/v1`
- `POST /models/{model}:generateContent`
Documentation: `google-gemini-chat` (GenerateContent) at `https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md`
### curl Example (returns inline_data for images)
```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-detail...## OpenClaw Media Gen
Generate images and videos using AIsa API:
- **Gemini Image**: `gemini-3-pro-image-preview` (`/v1/models/{model}:generateContent`)
- **Wan 2.6 Video**: `wan2.6-t2v` (`/apis/v1/services/aigc/...` async task + polling)
API Documentation: [`https://aisa.mintlify.app/api-reference/introduction`](https://aisa.mintlify.app/api-reference/introduction)
### Pricing Comparison - Video (WAN)
| Resolution | AIsa (Contract) | AIsa (Official) | Bailian (Official) | OpenRouter |
|------------|-----------------|-----------------|-------------------|------------|
| 720P | $0.06/sec | ~$0.08 | ~$0.10 | ❌ |
| 1080P | $0.09/sec | ~$0.12 | ~$0.15 | ❌ |
| Pro/Animate | $0.108–0.156 | ~$0.18 | ~$0.25 | ❌ |
**Competitive Advantage**: AIsa offers the lowest pricing for WAN video generation with contract rates, and remains competitive even at official pricing. OpenRouter does not currently support video generation.
### Quick Start
```bash
export AISA_API_KEY="your-key"
```
### Generate Image
```bash
python scripts/media_gen_client.py image \
--prompt "A cute red panda, cinematic lighting" \
--out out.png
```
### Generate Video (Create Task + Poll)
```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
```
### Auto-download Generated Video (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.