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
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & 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 zip
latestvk97byg1mff9kg5q7ryrcc6nhtx813qhr

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

  1. Create Task: Submit story + type → get task ID
  2. Poll Status: Query every 5-10s until completion
  3. Get Results: Retrieve video URLs when status = 2

Book Types

TypeMethodDescription
Static9Static picture book
Dynamic10Dynamic picture book

Required: User must specify type (static/9 or dynamic/10). If not provided, ask them to choose.

Status Codes

CodeStatusAction
0, 1, 3In ProgressContinue polling
2CompletedReturn results
OtherFailedShow error

APIs

Create Task

Endpoint: POST /v2/tools/ai_picture_book/task_create

Parameters:

  • method (required): 9 for static, 10 for dynamic
  • content (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

  1. Create task → store task_id
  2. Query every 5-10s until status = 2
  3. 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 total
Select a file
Select a file to preview.

Comments

Loading comments…