返回 JoyAI-Echo
r2v_request.schema.json
根目录 / echo_longvideo / schemas / r2v_request.schema.json
1 {
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "$id": "https://github.com/JoyAI/JoyAI-Echo15/schemas/r2v_request.schema.json",
4 "title": "Echo 1.5 R2V request",
5 "type": "object",
6 "additionalProperties": false,
7 "required": ["work_id", "shot_id", "prompt", "memory_slots"],
8 "properties": {
9 "work_id": {"type": "string", "minLength": 1},
10 "shot_id": {"type": "string", "minLength": 1},
11 "prompt": {"type": "string", "minLength": 1},
12 "condition_img": {
13 "oneOf": [
14 {"type": "string", "minLength": 1},
15 {"type": "null"}
16 ]
17 },
18 "memory_slots": {
19 "type": "array",
20 "maxItems": 7,
21 "items": {
22 "type": "object",
23 "additionalProperties": false,
24 "properties": {
25 "shot_id": {"type": "string", "minLength": 1},
26 "image_url": {"type": "string", "minLength": 1},
27 "audio_url": {"type": "string", "minLength": 1},
28 "audio_mode": {"const": "empty"},
29 "metadata": {"type": "object"}
30 },
31 "oneOf": [
32 {
33 "required": ["shot_id"],
34 "not": {
35 "anyOf": [
36 {"required": ["image_url"]},
37 {"required": ["audio_url"]},
38 {"required": ["audio_mode"]}
39 ]
40 }
41 },
42 {
43 "required": ["image_url"],
44 "not": {"required": ["shot_id"]},
45 "allOf": [
46 {
47 "not": {
48 "allOf": [
49 {"required": ["audio_url"]},
50 {"required": ["audio_mode"]}
51 ]
52 }
53 }
54 ]
55 }
56 ]
57 }
58 },
59 "num_frames": {"type": "integer", "minimum": 1},
60 "duration_sec": {"type": "number", "exclusiveMinimum": 0},
61 "width": {"type": "integer", "minimum": 1},
62 "height": {"type": "integer", "minimum": 1},
63 "seed": {"type": "integer"}
64 }
65 }
66
66 lines JSON