Upscale Image
Use the Pilio CLI so upload, task creation, and polling stay aligned with the official SDK.
Require PILIO_API_KEY in the environment. Do not ask the user to paste API keys into the conversation.
Run:
pnpm dlx @pilio/cli upscale-image --input ./small.png
The command returns a task payload. If the task is still pending or processing, wait for it:
pnpm dlx @pilio/cli task wait <task_id>