ai-picture-book
Generate static or dynamic picture book videos using Baidu AI
от modbender★ 21 звезда на GitHub
Установить ai-picture-book в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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"
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/ai_picture_book_poll.py
- scripts/ai_picture_book_task_create.py
- scripts/ai_picture_book_task_query.py
FAQ
Что делает скилл ai-picture-book?
Generate static or dynamic picture book videos using Baidu AI
Как установить скилл ai-picture-book?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-picture-book запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…