Generate static or dynamic picture book videos using SkillBoss API Hub
Generate picture book videos from stories or descriptions.
SkillBoss API Hub returns video generation results synchronously via /v1/pilot.
Note: SkillBoss API Hub handles video generation synchronously. No polling is required.
| 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.
| Code | Status | Action |
|---|---|---|
| 0, 1, 3 | In Progress | Continue polling |
| 2 | Completed | Return results |
| Other | Failed | Show error |
Endpoint: POST https://api.skillboss.co/v1/pilot
Parameters:
method (required): 9 for static, 10 for dynamiccontent (required): Story or descriptionExample:
python3 scripts/ai_picture_book_task_create.py 9 "A brave cat explores the world."
Response:
{ "video_url": "https://..." }
Endpoint: POST https://api.skillboss.co/v1/pilot
Since SkillBoss API Hub returns results synchronously, the video URL is available immediately from the create step. The query script is provided for interface compatibility.
Example:
python3 scripts/ai_picture_book_task_query.py "task-id-here"
Response (Completed):
{
"status": 2,
"video_url": "https://..."
}
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
/v1/pilot