{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinetune-com/json-schema/kinetune-com-video-schema.json",
  "title": "Video",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/kinetune-com-v1-openapi.json#/components/schemas/Video",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "lyric-video",
        "canvas",
        "music-video"
      ]
    },
    "variation": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "variation_count": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "quote_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "stage": {
      "type": "string",
      "description": "The step it is at while it is made"
    },
    "progress": {
      "type": "number",
      "description": "0–100"
    },
    "queue": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "enum": [
                "plan_limit",
                "render_capacity",
                "generator_capacity"
              ],
              "description": "plan_limit: the organization already makes as many videos at once as its plan allows, so this one starts when one of them finishes (AI music videos have a limit of their own: half the plan's, rounded up). render_capacity: every render machine is busy, so parts of this video wait their turn (higher plans get a larger share of the machines). generator_capacity: every music video generator is busy, so this music video starts generating when one is free"
            },
            "position": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ],
              "description": "plan_limit: its place among the organization's waiting videos (1 starts next); generator_capacity: its place among the music videos waiting for a generator; null otherwise"
            },
            "estimated_wait_seconds": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ],
              "description": "render_capacity: about how long until all of it is rendering, in seconds; null otherwise"
            }
          },
          "required": [
            "reason",
            "position",
            "estimated_wait_seconds"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Why the video is waiting, while it waits (its plan's limit, or every render machine busy); null otherwise"
    },
    "outputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "aspect_ratio": {
            "type": "string",
            "enum": [
              "9:16",
              "16:9",
              "1:1"
            ],
            "description": "The format of this file"
          },
          "url": {
            "description": "The full-quality file",
            "type": "string"
          },
          "download_url": {
            "description": "The full-quality file, saved under a readable name",
            "type": "string"
          },
          "web_url": {
            "description": "A 720p copy, for playback",
            "type": "string"
          },
          "poster_url": {
            "description": "A still of the video: for a lyric video one whole lyric line on screen (the hook when it can be), for a Canvas its first frame, for a music video a frame of its first seconds",
            "type": "string"
          },
          "poster_seconds": {
            "description": "Where poster_url was cut, in seconds from the start of this file (a trimmed clip counts from its own start): the cover frame offset for a post that takes one instead of an image (TikTok). Null for videos made before it was kept",
            "type": [
              "number",
              "null"
            ]
          },
          "url_expires_in_seconds": {
            "description": "How long the links stay valid",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "duration_seconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "size_bytes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "bitrate_kbps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "web_size_bytes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "aspect_ratio",
          "poster_seconds"
        ],
        "additionalProperties": {}
      },
      "description": "One file per format, once delivered"
    },
    "song": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "artist_name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "title",
        "artist_name"
      ],
      "additionalProperties": false
    },
    "request": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "description": "What the video was made from, with your metadata"
    },
    "look_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "look": {
      "anyOf": [
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "canvas": {
      "description": "A Canvas: its design and, for stock, the credit to show",
      "anyOf": [
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "music_video": {
      "description": "A music video's plan, once the director made it (null before)",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "concept": {
              "type": "string",
              "description": "The idea, in a sentence or three"
            },
            "style": {
              "type": "string",
              "description": "The visual style it was made in (the one asked for, or the director's pick)"
            },
            "clips": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "How many clips it is generated in"
            },
            "on_screen": {
              "description": "Who is on screen: the artist, a cast or no one",
              "type": "string",
              "enum": [
                "artist",
                "cast",
                "none"
              ]
            },
            "world": {
              "type": "object",
              "properties": {
                "setting": {
                  "type": "string"
                },
                "wardrobe": {
                  "type": "string"
                },
                "light": {
                  "type": "string"
                }
              },
              "required": [
                "setting",
                "wardrobe",
                "light"
              ],
              "additionalProperties": false
            },
            "shots": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "index": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "start_seconds": {
                    "type": "number"
                  },
                  "end_seconds": {
                    "type": "number"
                  },
                  "section": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lyrics": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "frame_url": {
                    "description": "Delivered: a picture of the shot as it came out (from its middle; signed, 7 days); null for a video delivered before these pictures",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "index",
                  "start_seconds",
                  "end_seconds",
                  "section",
                  "lyrics",
                  "summary"
                ],
                "additionalProperties": false
              },
              "description": "Each clip's beat, timed from the start of the video"
            },
            "review": {
              "description": "Delivered: the director's look at every shot once they were joined, one item per shot that needs a fix or could be better (an empty list: every shot passed; null: not looked at, a video delivered before it). Nothing is made again on its own: revising is the artist's choice (revise_music_video_shot, priced by price_music_video_revision)",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "shot": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991,
                        "description": "The shot (its index in shots)"
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "fix",
                          "better"
                        ],
                        "description": "fix: needs a fix; better: could be better"
                      },
                      "finding": {
                        "type": "string",
                        "description": "What is wrong, in one plain line"
                      },
                      "note": {
                        "type": "string",
                        "description": "A revision note written from the finding, to send as the shot's note to revise_music_video_shot (edit it freely)"
                      },
                      "at_seconds": {
                        "type": "number",
                        "description": "Where it starts, in seconds from the start of the video"
                      },
                      "check": {
                        "type": "string",
                        "enum": [
                          "faces",
                          "mouth_backing",
                          "mouth_silence",
                          "lip_sync",
                          "unasked"
                        ],
                        "description": "What found it: faces (more faces than the shot has people), mouth_backing / mouth_silence (lips moving where only backing vocals, or nobody, sing), lip_sync, unasked (text, a logo or a prop nobody asked for)"
                      }
                    },
                    "required": [
                      "shot",
                      "verdict",
                      "finding",
                      "note",
                      "at_seconds",
                      "check"
                    ],
                    "additionalProperties": false
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "lip_sync": {
              "description": "Delivered: the sung shots whose picture was moved so the lips land on the lead vocal (measured on the faces, free)",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "shot": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "offset_seconds": {
                    "type": "number",
                    "description": "How far the lips were off the lead vocal (positive: late), now lined up"
                  }
                },
                "required": [
                  "shot",
                  "offset_seconds"
                ],
                "additionalProperties": false
              }
            },
            "test": {
              "description": "A test of a plan (ordered with test: true): the plan's shots it made and their seconds in the song; null for a whole video",
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "shots": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "description": "The plan's shots it makes (their index in the plan)"
                    },
                    "start_seconds": {
                      "type": "number"
                    },
                    "end_seconds": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "shots",
                    "start_seconds",
                    "end_seconds"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "title",
            "concept",
            "style",
            "clips",
            "world",
            "shots"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "quoted_credits": {
      "type": [
        "number",
        "null"
      ]
    },
    "charged_credits": {
      "type": [
        "number",
        "null"
      ]
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "error_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "retry_of_job_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "sharing": {
      "description": "get_video: its place in the Community (share_video), or null while it is private",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "socials": {
              "type": "boolean",
              "description": "Kinetune may also post it on its socials"
            },
            "credit_handle": {
              "description": "The @handle credited there",
              "type": [
                "string",
                "null"
              ]
            },
            "shared_at": {
              "type": "string",
              "description": "When it was made public"
            },
            "featured": {
              "type": "boolean",
              "description": "Kinetune features it (the Community's featured row, and kinetune.com)"
            },
            "hidden": {
              "type": "boolean",
              "description": "Kinetune's staff hid it: it stays out of the Community until they lift it"
            }
          },
          "required": [
            "socials",
            "credit_handle",
            "shared_at",
            "featured",
            "hidden"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "type",
    "variation",
    "variation_count",
    "quote_id",
    "status",
    "stage",
    "progress",
    "queue",
    "outputs",
    "song",
    "request",
    "look_id",
    "look",
    "quoted_credits",
    "charged_credits",
    "error",
    "error_code",
    "retry_of_job_id",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": {}
}