Video ngắn & Video trắc nghiệm
Tạo video ngắn hoặc video trắc nghiệm từ một ghi chú đã có. Tất cả các endpoint bên dưới đều hỗ trợ API Key (X-API-Key hoặc Authorization: Bearer ntx_...).
Base URL: https://api.notexapp.com
Tạo Shorts — POST /v2/create/shorts
Tạo video ngắn từ một ghi chú. Trả về task_id — theo dõi
Tasks để lấy kết quả.
Cũng hỗ trợ: User JWT, Service Key.
Content-Type: application/x-www-form-urlencoded
| Field | Type | Required | Description |
|---|---|---|---|
note_id | string | required | ID của ghi chú dùng để tạo |
voice_id | string | required | ID giọng đọc |
clip_duration | integer | optional | Thời lượng video mong muốn (giây) |
is_audio_only | boolean | optional | Chỉ tạo âm thanh (không có video) |
bg_id | string | optional | ID video/hình ảnh nền |
curl -X POST https://api.notexapp.com/v2/create/shorts \
-H "X-API-Key: ntx_live_..." \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "note_id=665f..." \
--data-urlencode "voice_id=en-US-Standard-A" \
--data-urlencode "clip_duration=60"
Response (200) — trả về task_id:
{
"status": "PROCESSING",
"data": {
"task_id": "b3f1a2c4-...",
"user_id": "665f..."
}
}
Tạo Video Quiz — POST /v2/create/quiz-video
Tạo video trắc nghiệm từ một ghi chú. Trả về task_id — theo dõi
Tasks để lấy kết quả.
Cũng hỗ trợ: User JWT, Service Key.
Content-Type: application/x-www-form-urlencoded
| Field | Type | Required | Description |
|---|---|---|---|
note_id | string | required | ID của ghi chú dùng để tạo |
voice_id | string | required | ID giọng đọc |
bg_id | string | optional | ID video/hình ảnh nền |
template_id | string | optional | ID mẫu video |
curl -X POST https://api.notexapp.com/v2/create/quiz-video \
-H "X-API-Key: ntx_live_..." \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "note_id=665f..." \
--data-urlencode "voice_id=en-US-Standard-A"
Response (200) — trả về task_id:
{
"status": "PROCESSING",
"data": {
"task_id": "b3f1a2c4-...",
"user_id": "665f..."
}
}
Theo dõi kết quả tác vụ để lấy URL video:
{
"status": "SUCCESS",
"data": {
"note_id": "665f...",
"video_url": "https://cdn.notexapp.com/videos/..."
}
}
Was this page helpful?