可用工具
该类别下的工具
多个工具共享同一模板,按评分、速度或价格选择。
| 工具 | 预计耗时 | 评分 | 金币 |
|---|---|---|---|
换脸
ID: 4
|
15s | 4.3 (<100) | 12/img |
参数说明
使用此模板调用 API 时,以下参数为必填或可选。
| 参数 | 类型 | 必填 | 标签 | 可选项 |
|---|---|---|---|---|
| face_image | image | 是 | 人脸图片 | — |
| original_image | image | 是 | 目标图片 | — |
| seed | number | 否 | 随机种子 | default: -1, min: -1, max: 4294967295, step: 1 |
代码示例
使用下方 cURL 示例快速开始,替换 API Key 和参数即可。
curl -X POST https://nsfwrouter.xyz/api/v1/tasks/create \
-H "Authorization: Bearer sk-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"tool_id": 4,
"params": {
"face_image": "https://example.com/input.jpg",
"original_image": "https://example.com/input.jpg",
"seed": -1
},
"webhook_url": "https://your-server.com/webhook"
}'
计费信息
按量计费 API 价格,无需订阅。
金币/图
12