{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/masko-ai/json-schema/masko-ai-create-collection-body-schema.json",
  "title": "CreateCollectionBody",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/masko-ai-openapi.json#/components/schemas/CreateCollectionBody",
  "type": "object",
  "properties": {
    "project_id": {
      "type": "string",
      "format": "uuid",
      "description": "Project to create the collection in. List projects via GET /v1/projects."
    },
    "name": {
      "type": "string",
      "description": "Display name. Defaults to a generated name if omitted."
    },
    "prompt": {
      "type": "string",
      "description": "Optional - do not set this if your references already show the mascot clearly. The reference images ARE the character. Only use prompt when you cannot provide references (pure text-to-mascot). When references are present, a prompt is auto-extracted from them. Without references, prompt generates one reference for 1 credit; a failed creation is refunded."
    },
    "context": {
      "type": "string",
      "description": "Extra hints the image alone cannot convey: personality and behavior (\"curious, cautious, never aggressive\"), consistency rules (\"always has a small white star on left ear\"), forbidden variants (\"never show without the hat\"), brand tone. Not a character description - the references cover that."
    },
    "type": {
      "type": "string",
      "default": "mascot",
      "description": "Collection type. Defaults to \"mascot\"."
    },
    "style": {
      "type": "string",
      "description": "Style ID or name. List styles via GET /v1/styles."
    },
    "design_touches": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "proportions",
          "simple",
          "asymmetry",
          "grounded",
          "few-colors",
          "no-mouth",
          "looks-at-you",
          "blush",
          "eyes-big",
          "eyes-dots",
          "signature",
          "weird",
          "twist",
          "grown-up-flaw",
          "magic-part",
          "mood-cozy",
          "mood-mischievous",
          "mood-melancholy",
          "mood-bold",
          "mood-mysterious",
          "mood-chaotic",
          "mood-serene"
        ]
      },
      "maxItems": 22,
      "description": "Optional design ideas for text-to-mascot creation, the same touches as the Studio creator. Requires prompt and no references. Each touch is added to the generated reference and applied only where it fits the character; the prompt wins where they differ. Pick at most one eyes-* and one mood-* value. Shape: proportions, simple, asymmetry, grounded, few-colors. Face: no-mouth, looks-at-you, blush, eyes-big, eyes-dots. Character: signature, weird, twist, grown-up-flaw, magic-part, mood-cozy, mood-mischievous, mood-melancholy, mood-bold, mood-mysterious, mood-chaotic, mood-serene."
    },
    "reference_image_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "Recommended entry point. Public image URLs of the mascot - at least one, up to 6. Each public HTTP(S) URL is downloaded with a 10 MB limit and a 15-second deadline; private addresses and unsafe redirects are rejected. PNG, JPEG, WebP, GIF and SVG are supported; SVG is converted to PNG. Each is stored as an asset. The first reference acts as the canonical look; additional ones widen angle/pose coverage. If you also pass reference_asset_ids, totals combine up to 6."
    },
    "reference_asset_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Existing asset IDs to use as references. A fresh upload from POST /v1/upload joins this mascot. An image that already belongs to another mascot stays there, and this mascot gets its own reference copy of it. Max 6 references combined with reference_image_urls."
    },
    "settings": {
      "type": "object",
      "properties": {
        "cdn_enabled": {
          "type": "boolean",
          "default": true
        },
        "animation_sizes": {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      },
      "description": "Collection settings. cdn_enabled: whether new assets auto-publish to the CDN. animation_sizes: up to 2 smaller pixel widths to auto-generate variants for, e.g. [480, 240]. Every animation already gets its 720 px files, so 720 and larger values are ignored. Common values: 480, 360, 240, 128."
    }
  },
  "required": [
    "project_id"
  ]
}