AI Photo 워크플로우
AI 상품 이미지 → 배경 제거 → 업스케일 → WebP
원본 상품 사진의 배경을 AI로 제거하고 2배 업스케일한 뒤 웹용 WebP로 최적화합니다.
ai-background-remover
→ai-image-upscaler
→resize-image → WebP
입력JPG / PNG / WebP
최종 결과WebP File
사용 Toolai-background-remover → ai-image-upscaler → resize-image
전체 코드
const cutout = await client.run("ai-background-remover", {
file: productPhoto
});
const upscaled = await client.run("ai-image-upscaler", {
file: cutout.files[0],
options: {
qualityMode: "natural"
}
});
const webReady = await client.run("resize-image", {
file: upscaled.files[0],
options: {
width: 1600,
keepAspectRatio: true,
format: "webp",
quality: 0.9
}
});
const finalFile = webReady.files[0];
이 레시피를 수정하기 전에 client.describe(toolId) 또는 Tool 명세 페이지에서 정확한 파일 제한, 옵션 값과 지원 모드를 확인하세요.