AI Photo Workflow
Bảo vệ khuôn mặt AI → Nhận diện → Mosaic → Nén
Tự động nhận diện khuôn mặt, mosaic và nén ảnh kết quả.
ai-face-blur
→compress-image
InputJPG / PNG / WebP
Final resultProtected image File
Tools usedai-face-blur → compress-image
Complete code
const protectedResult = await client.run("ai-face-blur", {
file: sourcePhoto,
options: {
mode: "mosaic",
strength: 28
}
});
const compressed = await client.run("compress-image", {
file: protectedResult.files[0],
options: {
format: "webp",
quality: 0.82
}
});
const finalFile = compressed.files[0];
Hãy kiểm tra client.describe(toolId) hoặc Tool Reference trước khi thay đổi workflow.