---
tool_name: sharpen
summary: Unsharp-mask sharpening with full control over amount, radius and threshold — rescue soft or upscaled photos.
input:
  file: binary, required # jpg / jpeg / png / webp (max 50MB)
  amount: number, required, min 0.5, max 3 # 锐化强度
  radius: number, required, min 0.5, max 10 # 锐化半径
  threshold: number, required, min 0, max 255 # 阈值
output:
  preview_url: string | watermarked preview, free, no auth
  task_id: string | unique task identifier
  payment_url: string | end-user must complete one-time payment to unlock final output
  final_download_url: string | only available after successful payment
auth: login via email/phone OTP on https://sharpen.yeezhan.com; API callers use a personal API key (Bearer yeek_...)
payment_rule: one-time charge $0.99 per task. NO credits, NO account balance. One payment unlocks only this task.
valid_window: 24 hours after payment
errors:
  - file_too_large
  - invalid_input
  - unsupported_type
  - target_unreachable
  - processing_failed
endpoint: https://sharpen.yeezhan.com/api/v1/run
---
