
Nano Banana 2 Lite:テキストから画像生成は、Google Gemini 3.1 Flash-Lite Imageモデルを使い、短いテキストプロンプトから画像を生成するComfyUI向けの最小・高速ワークフローです。ファイル入力不要で、アイデアからビジュアル化まで数秒で完了。1プロンプトで複数画像生成も可能なので、並列比較や反復検討が容易です。
GeminiNanoBanana2V2ノードがGemini 3.1 Flash-Lite Image APIを呼び出し、テキストプロンプト(必要に応じてテキスト+画像混在も可)を受け取り、生成画像をグラフに返します。出力はSaveImageAdvancedで直接ディスク保存。Flash-Lite Imageは低遅延設計のため、プロンプト調整→再キュー→比較→再調整の高速ループに最適です。
ノードは出力数やサイズなど実用的な生成コントロールも提供し、初期段階のスピード重視とビジュアル詳細のバランス調整が可能。参照画像ガイドが必要な場合はノードのインターフェースで混在入力もサポート(必須ではありません)。
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.
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














