Expand Imageは、1枚の写真をクロップや歪みなしで任意のアスペクト比に拡張するガイド付きアウトペイントワークフローです。画像を新しいキャンバスサイズに合わせて緑色のマットで囲み、その緑部分だけをQwen Image Edit 2511で自然なシーン継続に置き換えます。GetImageSize、ImageResizeKJv2、CustomCombo、ComfyNumberConvertなどのユーティリティノードで新しい寸法や余白を計算し、元画像は中央にそのまま残ります。

新規部分の内容を維持・統一するため、TextGenerateLTX2PromptとローカルVLMバックエンド(要設定)で自動キャプションを生成し、JsonExtractStringで抽出します。ComfySwitchNodeで自動キャプションと手動記述(PrimitiveStringMultiline)を切り替え可能。最終指示文はStringConcatenateで組み立て、必要に応じてCLIPLoaderでテキスト条件付けし、Qwen Image Edit 2511に照明・質感・遠近感の一致を指示します。PreviewAnyやImageCompareで中間結果や比較も可能、SaveImageAdvancedで再現性のあるアウトペイント画像とメタデータを保存します。

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

f8cf4feac2e9.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

よくある質問

すべてのワークフローを見る
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates