# Makeup Remover

Remove makeup from a face photo to show natural bare skin.

## Description

Upload a photo of a person wearing makeup and receive an image with all makeup removed, showing the natural skin underneath.

## Authentication

**Required**: x402 payment

## Request

**Endpoint**: `POST /api/makeup-remover/remove`

**Content-Type**: `multipart/form-data`

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| image | file | Yes | Photo with the person wearing makeup (JPG, PNG, or WebP, max 10MB) |

## Response

**200 OK**

```json
{
  "success": true,
  "imageUrl": "/outputs/uuid-here.png"
}
```

## Error Codes

| Status | Code | Description |
|--------|------|-------------|
| 400 | VALIDATION_ERROR | Invalid request |
| 402 | PAYMENT_REQUIRED | x402 payment not completed |
| 422 | INVALID_IMAGE_DATA | Unable to process image |
| 500 | INTERNAL_ERROR | AI generation failed |
| 504 | AI_GENERATION_TIMEOUT | AI request timed out |

## Example

```bash
npx x402-proxy -X POST \
  -F "image=@makeup-photo.jpg" \
  https://ps.codejar.net/api/makeup-remover/remove
```

## How It Works

Removes lipstick, foundation, eyeshadow, eyeliner, blush, contour while preserving natural skin texture and facial features.

## Use Cases

- Before/After Comparison
- Skin Analysis without makeup
- Virtual "makeup wipe" effect