{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spritefuse-com/json-schema/spritefuse-com-job-input-schema.json",
  "title": "JobInput",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/spritefuse-com-v1-openapi.json#/components/schemas/JobInput",
  "type": "object",
  "properties": {
    "operation": {
      "type": "string",
      "enum": [
        "character.generate",
        "animation.generate",
        "sprite.revise"
      ]
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "max_credits": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "source_job_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "frame_count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    },
    "selected_frame_index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 24
    },
    "reference_image_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "rpg_mode": {
      "type": "string",
      "enum": [
        "walk-4",
        "walk-8",
        "attack-8",
        "battle"
      ]
    }
  },
  "required": [
    "operation",
    "prompt",
    "max_credits"
  ],
  "additionalProperties": false
}