{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frameo-ai/json-schema/frameo-ai-model-list-schema.json",
  "title": "ModelList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frameo-ai-models-api-openapi.yml#/components/schemas/ModelList",
  "properties": {
    "object": {
      "type": "string",
      "const": "list",
      "title": "Object",
      "default": "list"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/Model"
      },
      "type": "array",
      "title": "Data"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "DraftMode": {
      "properties": {
        "resolutions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Resolutions",
          "description": "What a draft renders at."
        },
        "finalize_resolutions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Finalize Resolutions",
          "description": "What a finalize of a draft may target."
        },
        "source_lifetime_days": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Lifetime Days",
          "description": "How long a draft can be finalized, at most."
        }
      },
      "type": "object",
      "required": [
        "resolutions",
        "finalize_resolutions"
      ],
      "title": "DraftMode"
    },
    "Model": {
      "properties": {
        "object": {
          "type": "string",
          "const": "model",
          "title": "Object",
          "default": "model"
        },
        "id": {
          "type": "string",
          "title": "Id"
        },
        "type": {
          "type": "string",
          "title": "Type",
          "description": "video or image"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        },
        "text_to_video": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Text To Video"
        },
        "image_to_video": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Image To Video"
        },
        "last_frame": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Frame",
          "description": "Accepts an image with role last_frame."
        },
        "last_frame_requires_first_frame": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Frame Requires First Frame"
        },
        "aspect_follows_first_frame": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aspect Follows First Frame",
          "description": "With a first frame, the output takes that image's aspect ratio."
        },
        "min_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Seconds"
        },
        "max_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Seconds"
        },
        "only_seconds": {
          "anyOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Only Seconds",
          "description": "When set, the only durations allowed."
        },
        "aspect_ratios": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aspect Ratios"
        },
        "resolutions": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resolutions"
        },
        "max_reference_images": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Reference Images"
        },
        "max_input_images": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Input Images"
        },
        "sound": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sound",
          "description": "optional, always or none"
        },
        "max_prompt_chars": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Prompt Chars"
        },
        "draft": {
          "anyOf": [
            {
              "$ref": "#/$defs/DraftMode"
            },
            {
              "type": "null"
            }
          ],
          "description": "Draft mode, on models that offer it; null otherwise."
        },
        "credits": {
          "anyOf": [
            {
              "additionalProperties": {
                "type": "integer"
              },
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Credits",
          "description": "This workspace's credits: per second by resolution for video, per image for images."
        }
      },
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "title": "Model"
    }
  }
}