Image Processing

AI-powered image processing commands. All commands accept --url with a public image URL.

Async vs synchronous:

  • Most commands are async — they return a task_id. Use --wait to block until complete, or poll manually with image:task.
  • image:blur-background is synchronous — returns {"image_url": "..."} directly.

Commands

CommandTypeDescription
image:remove-backgroundasyncRemove image background
image:blur-backgroundsyncBlur image background
image:upscaleasyncUpscale image up to 4x
image:convertasyncConvert to another format
image:generative-fillasyncAI generative fill with prompt
image:restoreasyncRestore/enhance image quality
image:outpaintasyncExtend image canvas with AI
image:magic-inpaintasyncAI object removal/replacement
image:pix-to-pixasyncInstruction-based image editing
image:replaceasyncReplace objects in image via prompt
image:sd-scribbleasyncGenerate image from sketch/scribble
image:taskPoll async task status

Async Workflow

# Without --wait: returns task_id immediately
simplified image:remove-background --url "https://example.com/photo.jpg"
# {"task_id": "abc123"}

# With --wait: blocks until done (timeout: 120s)
simplified image:remove-background --url "https://example.com/photo.jpg" --wait
# {"url": "https://cdn.simplified.com/result.png"}

# Manual poll
simplified image:task --id "abc123"
# status: pending | completed | success | failed