{
  "title": "GhibliAI Enhancement API",
  "description": "Advanced AI-powered image processing and generation API",
  "version": "2.0",
  "creator": "https://t.me/Ashlynn_Repository",
  "baseUrl": "https://lovepdface.itz-ashlynn.workers.dev",
  "endpoints": {
    "/": {
      "method": "GET",
      "description": "API documentation and usage guide"
    },
    "/process": {
      "method": "GET, POST",
      "description": "Process images with various AI tools",
      "contentType": "application/json or application/x-www-form-urlencoded"
    }
  },
  "actions": {
    "ghibli": {
      "description": "Convert photos to Ghibli-style anime artwork",
      "requiredParams": [
        "imageUrl"
      ],
      "example": {
        "action": "ghibli",
        "imageUrl": "https://example.com/photo.jpg"
      }
    },
    "swap": {
      "description": "Advanced face swapping between two images",
      "requiredParams": [
        "sourceUrl",
        "targetUrl"
      ],
      "example": {
        "action": "swap",
        "sourceUrl": "https://example.com/source.jpg",
        "targetUrl": "https://example.com/target.jpg"
      }
    },
    "clothes": {
      "description": "Remove or modify clothes using AI with mask",
      "requiredParams": [
        "imageUrl",
        "maskUrl"
      ],
      "example": {
        "action": "clothes",
        "imageUrl": "https://example.com/person.jpg",
        "maskUrl": "https://example.com/mask.jpg"
      }
    },
    "txt2img": {
      "description": "Generate images from text prompts",
      "requiredParams": [
        "prompt"
      ],
      "optionalParams": {
        "aspectRatio": "1:1 | 16:9 | 9:16 | 4:3 | 3:4 (default: 1:1)",
        "numOutputs": "1-4 (default: 1)"
      },
      "example": {
        "action": "txt2img",
        "prompt": "beautiful sunset over mountains",
        "aspectRatio": "16:9",
        "numOutputs": 1
      }
    }
  },
  "usage": {
    "GET": "https://lovepdface.itz-ashlynn.workers.dev/?action=ghibli&imageUrl=https://example.com/image.jpg",
    "POST": {
      "url": "https://lovepdface.itz-ashlynn.workers.dev",
      "headers": {
        "Content-Type": "application/json"
      },
      "body": {
        "action": "ghibli",
        "imageUrl": "https://example.com/image.jpg"
      }
    }
  },
  "responseFormat": {
    "success": {
      "success": true,
      "data": "{ processed result }",
      "creator": "https://t.me/Ashlynn_Repository",
      "processedWith": "action_name",
      "timestamp": "ISO date string"
    },
    "error": {
      "success": false,
      "error": "Error description",
      "creator": "https://t.me/Ashlynn_Repository",
      "timestamp": "ISO date string"
    }
  },
  "rateLimit": "Standard Cloudflare Worker limits apply",
  "support": "https://t.me/Ashlynn_Repository",
  "apiVersion": "2.0",
  "lastUpdated": "2026-11-20T11:25:48.539Z"
}