{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meetkuro-com/json-schema/meetkuro-com-recipe-schema.json",
  "title": "Recipe",
  "description": "A template that asks a few questions and makes something.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meetkuro-com-openapi.json#/components/schemas/Recipe",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "recipe"
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "enum": [
        "arm",
        "reprompt",
        "run"
      ],
      "description": "`arm` makes one generation from your answers; `reprompt` does too, with a model writing the prompt from them; `run` starts a multi-step run (`GET /v1/runs/{id}`). New values may be added."
    },
    "type": {
      "type": "string",
      "enum": [
        "image",
        "clip",
        "voiceover",
        "music"
      ],
      "description": "What it makes. New values may be added."
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "The default model; null on a `run` recipe, whose steps choose their own."
    },
    "recommended_models": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Models its author tested. Any model of its medium that can take its inputs runs it too."
    },
    "prompt": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "label": {
          "type": "string"
        },
        "placeholder": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "max_length": {
          "type": "integer"
        }
      },
      "required": [
        "label",
        "placeholder",
        "required",
        "max_length"
      ],
      "description": "What `prompt` asks for when you run it; null when it asks for none."
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "help": {
            "type": [
              "string",
              "null"
            ]
          },
          "media": {
            "type": "string",
            "description": "\"image\", \"video\" or \"audio\"."
          },
          "required": {
            "type": "boolean"
          },
          "max_items": {
            "type": "integer"
          },
          "takes_subject": {
            "type": "boolean",
            "description": "Whether this input takes one of your Subjects as `{ \"type\": \"subject\", \"subject_id\" }`."
          }
        },
        "required": [
          "key",
          "label",
          "help",
          "media",
          "required",
          "max_items",
          "takes_subject"
        ]
      },
      "description": "The media an `arm` or `reprompt` recipe takes, by key."
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "help": {
            "type": [
              "string",
              "null"
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              },
              "required": [
                "value",
                "label"
              ]
            }
          },
          "max_picks": {
            "type": "integer"
          },
          "shown_when": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "choice": {
                "type": "string"
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "choice",
              "values"
            ],
            "description": "Asked only when that earlier choice holds one of these values."
          }
        },
        "required": [
          "key",
          "label",
          "help",
          "options",
          "max_picks",
          "shown_when"
        ]
      }
    },
    "run_inputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "key",
          "label"
        ]
      },
      "description": "What a `run` recipe takes, by key; empty on the others."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "uses": {
      "type": "integer"
    },
    "cover_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "app_url": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "object",
    "id",
    "name",
    "description",
    "action",
    "type",
    "model",
    "recommended_models",
    "prompt",
    "inputs",
    "choices",
    "run_inputs",
    "tags",
    "uses",
    "cover_url",
    "app_url"
  ]
}