dLazy AIdLazy AI
Model ReferenceImage Models

imageseg

Image matting tool: separates foreground and returns a transparent-background URL. Good for product images, cutouts, and compositing.

Image matting tool: separates foreground and returns a transparent-background URL. Good for product images, cutouts, and compositing.

Overview

FieldValue
Model IDimageseg
CLIdlazy imageseg
MCPimageseg (Claude Code surfaces this as mcp__dlazy__imageseg)
Typeimage
ExecutionReturns synchronously
BatchSupports --batch <n> parallel fan-out

Parameters

ArgTypeRequiredNotes
imageurlYesImage (URL); image (accepts URL, local path, or data: URL)

--input @file.json or --input '{...}' can supply all args at once; flags take precedence over --input keys.

CLI Examples

dlazy imageseg --help
dlazy imageseg --image "https://example.com/reference.jpg"
dlazy imageseg --image "./local-image.png"
dlazy imageseg --image "https://example.com/reference.jpg" --dry-run
dlazy imageseg --image "https://example.com/reference.jpg" --batch 4

Compose with a pipeline

dlazy gpt-image-2 --prompt "reference visual" \
  | dlazy imageseg --image -

MCP

MCP is consumed by AI clients, not handwritten. Once dLazy is registered as an MCP server the tool appears in the client's tool list — Claude Code surfaces it as mcp__dlazy__imageseg; generic clients (e.g. OpenClaw) call it as imageseg.

See MCP setup for how to add the server.

Output

{
  "outputs": [
    { "type": "image", "id": "o_...", "url": "https://files.dlazy.com/result.png", "mimeType": "image/png" }
  ]
}

Media tools emit image / video / audio / file outputs. Use --output url to print only the URLs on stdout.

On this page