SDK レシピ›AI商品画像 → 背景除去 → アップスケール → WebP
AI Photo Workflow

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 Reference でファイル制限、オプション値、対応モードを確認してください。