Invocation
- Service ID
portrait-sketch-stylization- Method
POST- Endpoint
/api/tools/portrait-sketch-stylization- Legacy Endpoint
/api/tools/aliyun-facebody-generate-human-sketch-style- MCP Tool
portrait_sketch_stylization- Price
- USD 0.20
Paid API service
Use this visual AI API when the task needs the visual analysis task described by action 将人像图片生成素描风格结果。. Send the schema keys exactly as listed (ImageURL, ReturnType); required parameters: ImageURL.
portrait-sketch-stylizationPOST/api/tools/portrait-sketch-stylization/api/tools/aliyun-facebody-generate-human-sketch-styleportrait_sketch_stylizationCall the endpoint without payment to receive HTTP 402 metadata. After payment is complete, retry with X-Payment-Token, an x402 payment signature, or MCP paymentToken.
Call POST /api/tools/portrait-sketch-stylization once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId="portrait-sketch-stylization". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.
{
"exampleRequest": {
"ImageURL": "https://example.com/image.jpg"
},
"exampleResponse": {
"code": "200",
"content": "",
"data": {
"Action": "GenerateHumanSketchStyle",
"Result": "example result from Alibaba Cloud facebody"
},
"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"
},
"ReturnType": {
"description": "Alibaba Cloud RPC parameter ReturnType.",
"type": "string"
}
},
"required": [
"ImageURL"
],
"type": "object"
},
"outputSchema": {
"properties": {
"code": {
"type": "string"
},
"content": {
"type": "string"
},
"data": {
"type": "object"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"requestId",
"data"
],
"type": "object"
}
}