{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meetkuro-com/json-schema/meetkuro-com-clip-request-schema.json",
  "title": "ClipRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meetkuro-com-openapi.json#/components/schemas/ClipRequest",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "clip"
      ]
    },
    "prompt": {
      "type": "string",
      "maxLength": 4000,
      "default": ""
    },
    "model": {
      "type": "string",
      "maxLength": 80,
      "description": "Defaults to the server's default clip model."
    },
    "duration_seconds": {
      "type": "integer",
      "minimum": -1,
      "maximum": 60,
      "description": "One of the model's `duration.values`; -1 lets a model that supports it choose."
    },
    "resolution": {
      "type": "string",
      "maxLength": 12
    },
    "aspect_ratio": {
      "type": "string",
      "maxLength": 12,
      "description": "Defaults to 9:16. Leave out with a `first_frame`: the clip takes the frame's shape."
    },
    "generate_audio": {
      "type": "boolean"
    },
    "first_frame": {
      "$ref": "#/$defs/MediaReference",
      "description": "A picture, clip or sound you already have in Kuro."
    },
    "last_frame": {
      "$ref": "#/$defs/MediaReference",
      "description": "A picture, clip or sound you already have in Kuro."
    },
    "reference_images": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaReference"
      },
      "maxItems": 9
    },
    "reference_videos": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaReference"
      },
      "maxItems": 3,
      "description": "A take to copy motion from, or to re-sync a mouth in."
    },
    "reference_audios": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MediaReference"
      },
      "maxItems": 3
    },
    "subjects": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 120
      },
      "maxItems": 4,
      "description": "Names or ids of your Subjects. Kuro brings each one's face and description, so do not also attach pictures of them."
    },
    "runs_on": {
      "type": "string",
      "maxLength": 40,
      "description": "Who pays: \"credits\", or the vendor of one of your own keys (\"replicate\", \"fal\", …). Leave out to follow the payer order set in Settings → Agents."
    },
    "webhook_url": {
      "type": "string",
      "maxLength": 2048,
      "format": "uri",
      "description": "Where to POST a signed event when this settles. HTTPS on the default port; see Webhooks in the API description."
    }
  },
  "required": [
    "type"
  ],
  "$defs": {
    "MediaReference": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "upload"
              ]
            },
            "upload_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "type",
            "upload_id"
          ]
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "generation"
              ]
            },
            "generation_id": {
              "type": "string",
              "format": "uuid"
            }
          },
          "required": [
            "type",
            "generation_id"
          ]
        }
      ],
      "description": "A picture, clip or sound you already have in Kuro."
    }
  }
}