face_change_gender
Specify target gender per face and transform the portrait's facial gender appearance.
Instructions
Swap perceived facial gender characteristics in a portrait.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_url": "<image_url>",
"gender_infos": "<gender_infos>"
},
"name": "face_change_gender"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | URL of the portrait whose facial gender should be swapped. | |
| gender_infos | Yes | Target gender information for each face, optionally including face_rect. Example: [{'gender': 1, 'face_rect': {'x': 0, 'y': 0, 'width': 100, 'height': 100}}]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |