ai-picture-book

Generate static or dynamic picture book videos using Baidu AI

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ai-picture-book" with this command: npx skills add ide-rea/ai-picture-book

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"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Xiaohongshu Post (Browser Auto)

Create and publish Xiaohongshu (小红书/RED) notes. Use when: user wants to publish a note to Xiaohongshu, schedule or batch post content, generate Xiaohongshu-s...

Registry SourceRecently Updated
General

Jsonlint

JSON validator, formatter, and toolkit. Validate JSON files for syntax errors, pretty-print with customizable indentation, minify for production, extract val...

Registry SourceRecently Updated
General

Unitconv

Unit converter for length, weight, temperature, volume, speed, and data sizes. Convert between metric and imperial units, Celsius and Fahrenheit, bytes and g...

Registry SourceRecently Updated
General

Arbitrage Finder

Scan price differences across exchanges, score arbitrage opportunities, and track historical success rates. Use when you need arbitrage finder capabilities....

Registry SourceRecently Updated