Generate AI-powered notes from videos (document, outline, or graphic-text formats) Use when this capability is needed.
Generate structured notes from video URLs using Baidu AI. Supports three note formats.
| Code | Status | Action |
|---|---|---|
| 10000 | In Progress | Continue polling |
| 10002 | Completed | Return results |
| Other | Failed | Show error |
| Type | Description |
|---|
| 1 | Document notes |
| 2 | Outline notes |
| 3 | Graphic-text notes |
Endpoint: POST /v2/tools/ai_note/task_create
Parameters:
video_url (required): Public video URLExample:
python3 scripts/ai_notes_task_create.py 'https://example.com/video.mp4'
Response:
{
"task_id": "uuid-string"
}
Endpoint: GET /v2/tools/ai_note/query
Parameters:
task_id (required): Task ID from create endpointExample:
python3 scripts/ai_notes_task_query.py "task-id-here"
Response (Completed):
{
"status": 10002,
"notes": [
{
"tpl_no": "1",
"contents: ["Note content..."]
}
]
}
task_idpython3 scripts/ai_notes_task_query.py <task_id>
Use the polling script for automatic status updates:
python3 scripts/ai_notes_poll.py <task_id> [max_attempts] [interval_seconds]
Examples:
# Default: 20 attempts, 3-second intervals
python3 scripts/ai_notes_poll.py "task-id-here"
# Custom: 30 attempts, 5-second intervals
python3 scripts/ai_notes_poll.py "task-id-here" 30 5
Output:
[1/20] Processing... 25%Converted and distributed by TomeVault | Claim this content