Server402 marketplace

Paid API service

Change Sky Image Segmentation

Use this visual AI API when the task needs replacing the sky region in an image. Send the schema keys exactly as listed (ImageURL, ReplaceImageURL); required parameters: ImageURL, ReplaceImageURL.

Invocation

Service ID
sky-replacement
Method
POST
Endpoint
/api/tools/sky-replacement
Legacy Endpoint
/api/tools/aliyun-imageseg-change-sky
MCP Tool
sky_replacement
Price
XIAO 0.2

Payment

Call the endpoint without payment to receive HTTP 402 metadata. If payment is required, open xiaopay.top to obtain XIAO, create the guarantee, then retry with X-Payment-Token, an XIAO guarantee header, or MCP paymentToken.

Call POST /api/tools/sky-replacement once to receive HTTP 402 with accepts[] requirements. Open https://xiaopay.top to obtain XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId, then retry with X402-Guarantee. If you need the legacy reusable token flow, create a payment with POST /api/payments using serviceId="sky-replacement".

Schema And Examples

{
  "exampleRequest": {
    "ImageURL": "https://example.com/image.jpg",
    "ReplaceImageURL": "https://example.com/mask-or-replacement.jpg"
  },
  "exampleResponse": {
    "code": "200",
    "content": "",
    "data": {
      "Action": "ChangeSky",
      "Result": "example result from Alibaba Cloud imageseg"
    },
    "message": "success",
    "requestId": "example-request-id"
  },
  "inputSchema": {
    "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"
      },
      "ReplaceImageURL": {
        "description": "Public http or https auxiliary image URL accepted by the Alibaba Cloud API.",
        "format": "uri",
        "type": "string"
      }
    },
    "required": [
      "ImageURL",
      "ReplaceImageURL"
    ],
    "type": "object"
  },
  "outputSchema": {
    "properties": {
      "code": {
        "type": "string"
      },
      "content": {
        "type": "string"
      },
      "data": {
        "type": "object"
      },
      "message": {
        "type": "string"
      },
      "requestId": {
        "type": "string"
      }
    },
    "required": [
      "requestId",
      "data"
    ],
    "type": "object"
  }
}