AI picture book generate
Generate static or dynamic picture book videos using Baidu AI
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 11 · 7.1k · 23 current installs · 24 all-time installs
by@ide-rea
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description (generate picture-book videos using Baidu AI) match the required binary (python3), the single required env var (BAIDU_API_KEY), and the scripts that call Baidu endpoints. The primary credential is the service API key, which is proportional for this purpose.
Instruction Scope
SKILL.md describes creating tasks, polling, and querying results and the provided scripts implement exactly that against qianfan.baidubce.com. Minor inconsistencies: SKILL.md lists the query endpoint as GET but the scripts use POST; SKILL.md does not document the Python 'requests' dependency required by the scripts.
Install Mechanism
No install spec (instruction-only) and included scripts are simple Python clients. No downloads or archive extraction. Note: scripts rely on the third-party 'requests' library but the skill doesn't declare how to install Python dependencies.
Credentials
Only BAIDU_API_KEY is required and it is used directly as a Bearer token for the Baidu endpoints. No other credentials or unrelated environment variables or config paths are requested or accessed.
Persistence & Privilege
always:false (no forced always-on). The skill does not attempt to modify other skills or system-wide agent settings; it only contains scripts executed by the user/agent on demand.
Assessment
This skill appears to do what it says: it posts tasks and polls results from Baidu's qianfan API and requires a BAIDU_API_KEY. Before installing or running, ensure you: (1) trust the skill source (there is no homepage), (2) provide a Baidu API key with minimal privileges you’re comfortable exposing to this code, (3) have python3 and the 'requests' package installed (the scripts will fail otherwise), and (4) review the scripts yourself if you are concerned—there is no hidden network activity beyond calls to qianfan.baidubce.com. The SKILL.md has a small mismatch (GET vs POST for query) but that is an implementation/documentation inconsistency rather than a security issue.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.1.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
📔 Clawdis
Binspython3
EnvBAIDU_API_KEY
Primary envBAIDU_API_KEY
SKILL.md
AI Picture Book
Generate picture book videos from stories or descriptions.
Workflow
- Create Task: Submit story + type → get task ID
- Poll Status: Query every 5-10s until completion
- Get Results: Retrieve video URLs when status = 2
Book Types
| Type | Method | Description |
|---|---|---|
| Static | 9 | Static picture book |
| Dynamic | 10 | Dynamic picture book |
Required: User must specify type (static/9 or dynamic/10). If not provided, ask them to choose.
Status Codes
| Code | Status | Action |
|---|---|---|
| 0, 1, 3 | In Progress | Continue polling |
| 2 | Completed | Return results |
| Other | Failed | Show error |
APIs
Create Task
Endpoint: POST /v2/tools/ai_picture_book/task_create
Parameters:
method(required):9for static,10for dynamiccontent(required): Story or description
Example:
python3 scripts/ai_picture_book_task_create.py 9 "A brave cat explores the world."
Response:
{ "task_id": "uuid-string" }
Query Task
Endpoint: GET /v2/tools/ai_picture_book/query
Parameters:
task_id(required): Task ID from create endpoint
Example:
python3 scripts/ai_picture_book_task_query.py "task-id-here"
Response (Completed):
{
"status": 2,
"video_bos_url": "https://...",
}
Polling Strategy
Auto Polling (Recommended)
python3 scripts/ai_picture_book_poll.py <task_id> [max_attempts] [interval_seconds]
Examples:
# Default: 20 attempts, 5s intervals
python3 scripts/ai_picture_book_poll.py "task-id-here"
# Custom: 30 attempts, 10s intervals
python3 scripts/ai_picture_book_poll.py "task-id-here" 30 10
Manual Polling
- Create task → store
task_id - Query every 5-10s until status = 2
- Timeout after 2-3 minutes
Error Handling
- Invalid content: "Content cannot be empty"
- Invalid type: "Invalid type. Use 9 (static) or 10 (dynamic)"
- Processing error: "Failed to generate picture book"
- Timeout: "Task timed out. Try again later"
Files
5 totalSelect a file
Select a file to preview.
Comments
Loading comments…
