---
name: ai-picture-book
description: The AI picture book tool is provided by Baidu and can generate static and dynamic picture book videos based on the content described by users
metadata: { "openclaw": { "emoji": "📔", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY" } }
---

# AI Picture Book Generation

This skill allows OpenClaw agents to generate AI picture book, Based solely on a story or description provided by the user.


## API table
|    name    |               path              |            description                |
|------------|---------------------------------|---------------------------------------|
|AIPictureBookTaskCreate|/v2/tools/ai_picture_book/task_create|Create AI pictrue book task based on a story or description provided by the user|
|AIPictureBookTaskQuery| /v2/tools/ai_note/query   |Query AI pictrue book task result based on task id|


## Workflow

1. The AIPictureBookTaskCreate API executes the Python script located at `scripts/ai_picture_book_task_create.py`
2. The AIPictureBookTaskQuery API executes the Python script located at `scripts/ai_picture_book_task_query.py`
3. The first step ,call the AIPictureBookTaskCreate API to create a task and get the task ID, must give the type of picture book(9 or 10) and a story or description of thing.
4. The second step ,call the AIPictureBookTaskQuery API to query the task result based on the task ID.
5. Repeat the second step until the task status is completed.The task success identifier is status=2. status=0,1 or 3 indicates that the task is in progress. All other status codes are failures
6. Once the task is completed, the result can be found  video_bos_url and video_cdn_url in the task query result.

## APIS

### AIPictureBookTaskCreate API 

#### Parameters

- `method`: Task Type, 9: Create static picture books; 10: Create dynamic picture books (required)
- `content`: Story or description (required)

#### Example Usage
```bash
python3 scripts/ai_picture_book_task_create.py 9 "This is a story about a little girl who loves to read books."
```

### AIPictureBookTaskQuery API 

#### Parameters

- `task_ids`: task id from AIPictureBookTaskCreate API return, If multiple task results are queried, the request parameter is the comma-separated task ID （required）


#### Example Usage
```bash
python3 scripts/ai_picture_book_task_query.py "26943ed4-f5a9-4306-a05b-b087665433a0"
```


---
Source attribution: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/ide-rea/ai-picture-book/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 clawdbot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: kbarbel640-del
Original project: https://github.com/kbarbel640-del/skills/blob/e7e336ac628c3e3bd771aff1aaa469c93778f94a/skills/ide-rea/ai-picture-book/SKILL.md
Attribution basis: Source repository record

Fields of work: Content & Media, Design, Marketing
Roles: Content Marketer, Graphic Designer, Video Producer
Specialties: API
Tools: Baidu
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: d86297b766dd54f86ea2387228fc93febcff2bfb965d2623168e9c7a1baa1cd1
