{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mint-gg/json-schema/mint-gg-pricing-estimate-request-schema.json",
  "title": "PricingEstimateRequest",
  "description": "Strict operation-discriminated pricing input. Each operation accepts only factors that can affect its planned Credit reservations.",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/mint-gg-api-openapi.json#/components/schemas/PricingEstimateRequest",
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "world_generation"
        },
        "generationPreset": {
          "type": "string",
          "enum": [
            "fast",
            "standard",
            "production"
          ],
          "default": "standard",
          "description": "Public generation quality and speed preset."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_generation"
        },
        "generationPreset": {
          "type": "string",
          "enum": [
            "fast",
            "standard",
            "production"
          ],
          "default": "standard",
          "description": "Public generation quality and speed preset."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "asset_pack_generation"
        },
        "generationPreset": {
          "type": "string",
          "enum": [
            "fast",
            "standard",
            "production"
          ],
          "default": "standard",
          "description": "Public generation quality and speed preset."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        },
        "itemCount": {
          "type": "integer",
          "minimum": 2,
          "maximum": 25,
          "default": 8
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "material_generation"
        },
        "materialMode": {
          "type": "string",
          "enum": [
            "generate",
            "image_to_maps",
            "extract"
          ],
          "default": "generate"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "material_pack_generation"
        },
        "materialMode": {
          "type": "string",
          "enum": [
            "generate",
            "image_to_maps",
            "extract"
          ],
          "default": "generate"
        },
        "itemCount": {
          "type": "integer",
          "minimum": 2,
          "maximum": 25,
          "default": 5
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "video_generation"
        },
        "generationPreset": {
          "enum": [
            "fast",
            "standard",
            "production"
          ],
          "default": "standard"
        },
        "videoMode": {
          "enum": [
            "text_to_video",
            "image_to_video",
            "first_last_frame",
            "reference_to_video"
          ],
          "default": "text_to_video"
        },
        "durationSeconds": {
          "type": "integer",
          "minimum": 3,
          "maximum": 15,
          "default": 8
        },
        "referenceImageCount": {
          "type": "integer",
          "minimum": 0,
          "maximum": 30,
          "default": 0
        },
        "referenceVideoDurationSeconds": {
          "type": "number",
          "minimum": 0,
          "maximum": 30.2,
          "default": 0
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "image_generation"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "imageId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "image_edit"
        },
        "imageId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "audioKind"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "audio_generation"
        },
        "audioKind": {
          "type": "string",
          "enum": [
            "sound_effect",
            "general_audio"
          ]
        },
        "durationSeconds": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 300,
          "description": "Requested duration. Mint returns its normalized billable duration in pricingFactors."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "worldId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "world_approval"
        },
        "worldId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "worldId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "world_revision"
        },
        "worldId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "modelId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_approval"
        },
        "modelId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "modelId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_revision"
        },
        "modelId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "assetPackId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "asset_pack_approval"
        },
        "assetPackId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "itemIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 25,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "Optional owned Asset Pack item selection."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "assetPackId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "asset_pack_revision"
        },
        "assetPackId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "itemIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 25,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "Optional owned Asset Pack item selection."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "worldId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "world_retry"
        },
        "worldId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "generationPreset": {
          "type": "string",
          "enum": [
            "fast",
            "standard",
            "production"
          ],
          "default": "standard",
          "description": "Public generation quality and speed preset."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "modelId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_retry"
        },
        "modelId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "generationPreset": {
          "type": "string",
          "enum": [
            "fast",
            "standard",
            "production"
          ],
          "default": "standard",
          "description": "Public generation quality and speed preset."
        },
        "generationMode": {
          "type": "string",
          "enum": [
            "auto",
            "review"
          ],
          "default": "auto",
          "description": "In review mode, Mint pauses before the conditional final stage."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "assetPackId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "asset_pack_retry"
        },
        "assetPackId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "itemIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 25,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "Optional owned Asset Pack item selection."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "assetPackId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "asset_pack_regeneration"
        },
        "assetPackId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "itemIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 25,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "Optional owned Asset Pack item selection."
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "modelId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_optimization"
        },
        "modelId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "optimizationLevel": {
          "type": "string",
          "enum": [
            "light",
            "moderate",
            "aggressive"
          ],
          "default": "moderate"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "modelId"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_retopology"
        },
        "modelId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "polygonType": {
          "type": "string",
          "enum": [
            "triangle",
            "quadrilateral"
          ],
          "default": "quadrilateral"
        },
        "faceLevel": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ],
          "default": "medium"
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "modelId",
        "animationActionCount"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "model_animation"
        },
        "modelId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "animationActionCount": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        }
      }
    },
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "operation",
        "assetPackId",
        "animationActionCount"
      ],
      "properties": {
        "operation": {
          "type": "string",
          "const": "asset_pack_animation"
        },
        "assetPackId": {
          "type": "string",
          "minLength": 1,
          "description": "Owned Mint resource ID used to resolve stored pricing factors."
        },
        "itemIds": {
          "type": "array",
          "minItems": 1,
          "maxItems": 25,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "minLength": 1
          },
          "description": "Optional owned Asset Pack item selection."
        },
        "animationActionCount": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        }
      }
    }
  ]
}