# Segment Commodity Image Segmentation Use this visual AI API when the task needs segmenting a product subject and generating a cutout. Send the schema keys exactly as listed (ImageURL, ReturnForm); required parameters: ImageURL. This is a paid API service exposed by Server402 for AI agents, MCP clients, OpenAPI importers, and applications. Call the endpoint once without payment to receive HTTP 402 payment instructions, complete payment, then retry with the returned payment token or x402 signature. ## Invocation - Service ID: `product-background-removal` - Canonical service ID: `product-background-removal` - Legacy internal service ID: `aliyun-imageseg-segment-commodity` - Method: `POST` - Endpoint: `https://aivps.lat/api/tools/product-background-removal` - Legacy endpoint: `https://aivps.lat/api/tools/aliyun-imageseg-segment-commodity` - Service page: https://aivps.lat/services/product-background-removal - OpenAPI: https://aivps.lat/openapi.json - Catalog search: https://aivps.lat/api/catalog/search?q=product-background-removal - MCP endpoint: https://aivps.lat/mcp - MCP tool: `product_background_removal` ## Pricing And Payment - Price: USD 0.20 - Billing mode: `per_call` - Max calls per payment: `1` - Payment provider: `x402_facilitator` - Payment flow: call without payment, receive `402 Payment Required`, pay, then retry with `X-Payment-Token` or `PAYMENT-SIGNATURE`. - Payment hint: Create a payment with POST /api/payments using serviceId="product-background-removal", then pass the returned token in X-Payment-Token or MCP paymentToken. ## Use Cases - segmenting a product subject and generating a cutout - Call one focused visual AI capability directly with JSON inputs - Use public image or video URLs and structured parameters to get machine-readable results ## Keywords SegmentCommodity, 阿里云分割抠图 商品分割, image segmentation, background removal, cutout, matting, mask generation, foreground extraction, segment, commodity, foreground mask, transparent background ## Input Schema ```json { "description": "Use Alibaba Cloud RPC parameter names exactly, for example ImageURL, ImageUrl, Url, URL, JobId, or Tasks depending on the service.", "properties": { "ImageURL": { "description": "Public http or https image URL accepted by the Alibaba Cloud API.", "format": "uri", "type": "string" }, "ReturnForm": { "description": "Alibaba Cloud RPC parameter ReturnForm.", "type": "string" } }, "required": [ "ImageURL" ], "type": "object" } ``` ## Output Schema ```json { "properties": { "code": { "type": "string" }, "content": { "type": "string" }, "data": { "type": "object" }, "message": { "type": "string" }, "requestId": { "type": "string" } }, "required": [ "requestId", "data" ], "type": "object" } ``` ## Example Request ```json { "ImageURL": "https://example.com/image.jpg" } ``` ## Example Response ```json { "code": "200", "content": "", "data": { "Action": "SegmentCommodity", "Result": "example result from Alibaba Cloud imageseg" }, "message": "success", "requestId": "example-request-id" } ```