---
tool_name: exam-photo-check
summary: Pre-check a registration photo against px / KB limits and auto-fix it into range — before the portal rejects it.
input:
  file: binary, required # JPG / PNG / WebP image (max 50MB)
  min_px: number, required, min 16, max 10000 # 像素下限（最短边）
  min_kb: number, required, min 1, max 10000 # 大小下限
  max_kb: number, required, min 1, max 50000 # 大小上限
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://exam-photo-check.yeezhan.com; API callers use a personal API key (Bearer yeek_...)
payment_rule: one-time charge $2.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://exam-photo-check.yeezhan.com/api/v1/run
---
