Text to vertical video in 100+ styles: AI codes each scene (HTML/SVG/WebGL), renders a 9:16 MP4 with music and English/Vietnamese voice. MCP, CLI and REST for AI agents.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"version": {
"type": "number",
"const": 1
},
"id": {
"type": "string",
"minLength": 1
},
"createdAt": {
"type": "string"
},
"style": {
"type": "string",
"minLength": 1,
"description": "id thẻ kiểu edit (edit-styles/<id>.md)"
},
"source": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"size": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"duration": {
"type": "number",
"minimum": 0
},
"startTime": {
"type": "number",
"description": "start_time của nguồn, đã trừ khi làm proxy"
},
"fps": {
"type": "number",
"exclusiveMinimum": 0,
"description": "avg_frame_rate"
},
"vfr": {
"type": "boolean"
},
"rotation": {
"type": "number",
"description": "độ xoay trong metadata, đã áp vào proxy"
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "chiều ngang khi hiển thị (sau xoay)"
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"codec": {
"type": "string"
},
"hdr": {
"type": "boolean"
},
"hasAudio": {
"type": "boolean"
}
},
"required": [
"file",
"sha256",
"size",
"duration",
"startTime",
"fps",
"vfr",
"rotation",
"width",
"height",
"codec",
"hdr",
"hasAudio"
],
"additionalProperties": false
},
"proxy": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"fps": {
"type": "number",
"const": 30
},
"audioRate": {
"type": "number",
"const": 48000
}
},
"required": [
"file",
"width",
"height",
"fps",
"audioRate"
],
"additionalProperties": false
},
"output": {
"type": "object",
"properties": {
"ratio": {
"default": "9:16",
"description": "tỉ lệ khung bản ra: 9:16 = 1080×1920, 16:9 = 1920×1080, 4:3 = 1440×1080, 3:4 = 1080×1440",
"type": "string",
"enum": [
"9:16",
"16:9",
"4:3",
"3:4"
]
},
"width": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"height": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"fps": {
"type": "number",
"const": 30
},
"audioRate": {
"type": "number",
"const": 48000
},
"lufs": {
"type": "number",
"minimum": -30,
"maximum": -8
}
},
"required": [
"width",
"height",
"fps",
"audioRate",
"lufs"
],
"additionalProperties": false
},
"keep": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
}
},
"required": [
"start",
"end"
],
"additionalProperties": false
},
"description": "đoạn nguồn được giữ, theo thứ tự, không chồng nhau"
},
"removed": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
},
"reason": {
"type": "string",
"enum": [
"pause",
"filler",
"retake",
"false-start",
"aside",
"edge",
"by-hand",
"trim"
]
},
"words": {
"default": "",
"type": "string"
}
},
"required": [
"start",
"end",
"reason"
],
"additionalProperties": false
},
"description": "đoạn bị bỏ, để người xem lại và đặt lại"
},
"reframe": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"face",
"center",
"fill",
"none"
]
}
},
"required": [
"mode"
],
"additionalProperties": false
},
"zooms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "number",
"minimum": 0,
"description": "giây nguồn lúc zoom chạm"
},
"dur": {
"type": "number",
"minimum": 0.2,
"maximum": 8
},
"scale": {
"type": "number",
"minimum": 1,
"maximum": 1.6
},
"kind": {
"type": "string",
"enum": [
"punch",
"push"
]
},
"word": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"at",
"dur",
"scale",
"kind"
],
"additionalProperties": false
}
},
"captions": {
"type": "object",
"properties": {
"style": {
"type": "string"
},
"renderer": {
"type": "string",
"enum": [
"hyperframes",
"pil"
]
},
"maxWords": {
"type": "integer",
"minimum": 1,
"maximum": 8
},
"position": {
"type": "string",
"enum": [
"lower",
"middle"
]
},
"words": {
"type": "array",
"items": {
"type": "object",
"properties": {
"i": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"w": {
"type": "string",
"minLength": 1
},
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
}
},
"required": [
"i",
"w",
"start",
"end"
],
"additionalProperties": false
}
},
"highlights": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"description": "chỉ số i của chữ nhấn"
},
"hiOff": {
"default": false,
"description": "tắt mọi chữ nhấn (chỉnh tay)",
"type": "boolean"
},
"off": {
"default": false,
"description": "không vẽ phụ đề (reel nhập vào: chữ đã nằm trong cảnh); vẫn giữ chữ để bật lại",
"type": "boolean"
},
"lines": {
"description": "dòng phụ đề chỉnh tay, GIÂY BẢN RA (thay cho nhóm chữ tự động; o: giây bản ra của từng chữ cho karaoke)",
"maxItems": 600,
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
},
"words": {
"minItems": 1,
"maxItems": 40,
"type": "array",
"items": {
"type": "object",
"properties": {
"w": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"o": {
"type": "number",
"minimum": 0
},
"hi": {
"type": "boolean"
}
},
"required": [
"w",
"o",
"hi"
],
"additionalProperties": false
}
}
},
"required": [
"start",
"end",
"words"
],
"additionalProperties": false
}
}
},
"required": [
"style",
"renderer",
"maxWords",
"position",
"words",
"highlights"
],
"additionalProperties": false
},
"sfx": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "number",
"minimum": 0
},
"name": {
"type": "string"
},
"gainDb": {
"type": "number",
"minimum": -30,
"maximum": 6
}
},
"required": [
"at",
"name",
"gainDb"
],
"additionalProperties": false
}
},
"music": {
"anyOf": [
{
"type": "object",
"properties": {
"file": {
"type": "string"
},
"gainDb": {
"type": "number",
"minimum": -40,
"maximum": 0
},
"duckDb": {
"type": "number",
"minimum": 0,
"maximum": 30,
"description": "0: không hạ nhạc khi nói"
},
"fadeOut": {
"type": "number",
"minimum": 0,
"maximum": 10
},
"start": {
"default": 0,
"description": "giây của bài nhạc phát ở đầu bản ra",
"type": "number",
"minimum": 0,
"maximum": 600
}
},
"required": [
"file",
"gainDb",
"duckDb",
"fadeOut"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"graphics": {
"default": [],
"description": "đồ hoạ bảng biểu (kiểu thong-tin-do-hoa)",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"counter",
"bar_chart",
"compare",
"spec_table",
"checklist",
"price_tag",
"sticker",
"line_chart",
"title_card"
]
},
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
},
"estimate": {
"type": "boolean",
"description": "có số suy ra, không nói thẳng → đồ hoạ ghi \"ước tính\""
},
"data": {
"type": "object",
"properties": {
"at": {
"type": "number",
"minimum": 0
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "number",
"minimum": 0
}
},
"required": [
"at"
],
"additionalProperties": {}
}
},
"points": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "number",
"minimum": 0
}
},
"required": [
"at"
],
"additionalProperties": {}
}
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "number",
"minimum": 0
}
},
"required": [
"at"
],
"additionalProperties": {}
}
}
},
"required": [
"at"
],
"additionalProperties": {}
},
"box": {
"anyOf": [
{
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"w": {
"type": "number",
"exclusiveMinimum": 0
},
"h": {
"type": "number",
"exclusiveMinimum": 0
},
"scale": {
"type": "number",
"minimum": 0.3,
"maximum": 1
}
},
"required": [
"x",
"y",
"w",
"h",
"scale"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "vị trí trên khung bản ra (px), đã né mặt"
},
"face": {
"anyOf": [
{
"minItems": 4,
"maxItems": 4,
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "null"
}
],
"description": "hợp khung mặt bản ra lúc đồ hoạ hiện (+lề, đã tính push), để kiểm không đè"
},
"squeeze": {
"default": null,
"description": "thu cả khung hình quanh (giữa, anchorY) trong lúc đồ hoạ hiện — cận mặt, không đủ chỗ phía trên",
"anyOf": [
{
"type": "object",
"properties": {
"scale": {
"type": "number",
"minimum": 0.5,
"maximum": 1
},
"anchorY": {
"type": "number",
"minimum": 0,
"maximum": 1920
}
},
"required": [
"scale",
"anchorY"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"type",
"start",
"end",
"estimate",
"data",
"box",
"face"
],
"additionalProperties": false
}
},
"hook": {
"default": null,
"description": "câu móc kéo lên đầu: bản ra = [hook] + keep[]; mọi mốc bản ra của keep dời thêm (end − start)",
"anyOf": [
{
"type": "object",
"properties": {
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
},
"repeat": {
"type": "boolean",
"description": "true: câu móc vẫn phát lại ở chỗ cũ; false: đã trừ khỏi keep"
},
"flash": {
"type": "boolean",
"description": "chớp trắng 2 khung ở chỗ nối móc → clip"
},
"sfx": {
"anyOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"at": {
"type": "number",
"minimum": 0,
"description": "giây nguồn (trong khoảng móc)"
},
"gainDb": {
"type": "number",
"minimum": -30,
"maximum": 6
}
},
"required": [
"name",
"at",
"gainDb"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"start",
"end",
"repeat",
"flash",
"sfx"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"hookText": {
"default": null,
"description": "chữ móc to ở 0 → until giây bản ra (chữ nhấn trong *…*)",
"anyOf": [
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"until": {
"type": "number",
"minimum": 0.5,
"maximum": 5
}
},
"required": [
"text",
"until"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"quote": {
"default": null,
"description": "câu trích dẫn to giữa khung (giây nguồn); video tối + mờ trong lúc đó",
"anyOf": [
{
"type": "object",
"properties": {
"start": {
"type": "number",
"minimum": 0
},
"end": {
"type": "number",
"minimum": 0
},
"dimTo": {
"type": "number",
"minimum": 0.1,
"maximum": 1
},
"blurPx": {
"type": "number",
"minimum": 0,
"maximum": 30
},
"dimIn": {
"type": "number",
"minimum": 0.1,
"maximum": 3
}
},
"required": [
"start",
"end",
"dimTo",
"blurPx",
"dimIn"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"audio": {
"type": "object",
"properties": {
"crossfadeMs": {
"type": "number",
"minimum": 5,
"maximum": 80
},
"keepSourceAudio": {
"type": "boolean",
"const": true
},
"voiceGainDb": {
"default": 0,
"description": "nâng/hạ giọng gốc so với nhạc (cả bản vẫn chuẩn về −14 LUFS)",
"type": "number",
"minimum": -12,
"maximum": 12
},
"sfxOff": {
"default": false,
"description": "tắt mọi tiếng động (giữ danh sách sfx)",
"type": "boolean"
}
},
"required": [
"crossfadeMs",
"keepSourceAudio"
],
"additionalProperties": false
},
"notes": {
"type": "string"
}
},
"required": [
"version",
"id",
"createdAt",
"style",
"source",
"proxy",
"output",
"keep",
"removed",
"reframe",
"zooms",
"captions",
"sfx",
"music",
"audio"
],
"additionalProperties": false,
"$id": "https://reels.lumtek.net/schema/edl-v1.json",
"title": "LumReels Edit EDL v1",
"description": "Bản dựng từ 1 video nguồn. Mọi mốc thời gian là giây của nguồn (đã trừ start_time)."
}