---
tool_name: resize-image
summary: Hit the exact pixel dimensions a platform demands — crop-fill or stretch, mm/inch aware.
input:
  file: binary, required # JPG / PNG / WebP image (max 50MB)
  width: number, required, min 1, max 20000 # Width
  height: number, required, min 1, max 20000 # Height
  unit: enum, optional # Unit
  fit: enum, optional # Edge handling
  dpi: number, optional, min 72, max 1200 # DPI（mm/inch 换算用）
  format: enum, optional # Output format
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://resize-image.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://resize-image.yeezhan.com/api/v1/run
---
