CodeStatusAction10000进行中继续轮询10002完成输出解析结果Other失败提示异常信息
TypeDescription1文稿笔记2大纲笔记3图文笔记
Endpoint: POST /v2/tools/ai_note/task_create
Parameters:
video_url (required): Public video URLExample:
bash
python3 scripts/ai_notes_task_create.py --video_url='https://example.com/video.mp4'
Response:
json
{
"task_id": "uuid-string"
}
Endpoint: GET /v2/tools/ai_note/query
Parameters:
task_id (required): Task ID from create endpointExample:
bash
python3 scripts/ai_notes_task_query.py --task_id="task-id-here"
Response (Completed):
json
[
{
"状态": "完成",
"文稿笔记": ["note1", "note2"]
},
{
"状态": "完成",
"大纲笔记": ["note1", "note2"]
},
{
"状态": "完成",
"图文笔记": ["note1", "note2"]
}
]
task_idbash
python3 scripts/ai_notes_task_query.py --task_id="task-id-here"
Use the polling script for automatic status updates:
bash
python3 scripts/ai_notes_poll.py --task_id="task-id-here" [--max_attempts=30] [--interval=5]
Examples:
bash
# Default: 20 attempts, 3-second intervals
python3 scripts/ai_notes_poll.py --task_id="task-id-here"
# Custom: 30 attempts, 5-second intervals
python3 scripts/ai_notes_poll.py --task_id="task-id-here" --max_attempts=30 --interval=5
Output:
[1/20] Processing... 25%