{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craftstory-com/json-schema/craftstory-com-music-create-schema.json",
  "title": "MusicCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craftstory-com-music-api-openapi.yml#/components/schemas/MusicCreate",
  "required": [
    "prompt"
  ],
  "type": "object",
  "properties": {
    "id": {
      "title": "Id",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "title": "Name",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 512
    },
    "prompt": {
      "title": "Prompt",
      "type": "string",
      "maxLength": 2000,
      "minLength": 1
    },
    "duration_s": {
      "title": "Duration s",
      "type": "integer",
      "default": 30,
      "maximum": 180,
      "minimum": 5
    },
    "instrumental": {
      "title": "Instrumental",
      "type": "boolean",
      "default": true
    },
    "credits": {
      "title": "Credits",
      "type": "integer",
      "readOnly": true
    }
  }
}