Nano Banana 2 Lite:文字轉圖像

Nano Banana 2 Lite:文字轉圖像是一套極簡、速度導向的 ComfyUI 工作流程,利用 Google Gemini 3.1 Flash-Lite Image 模型,將短文字提示轉為圖像。專為快速概念發想與反覆試驗設計,無需檔案輸入,讓你能在數秒內從想法到視覺化。每次提示可產生一張或多張圖,方便並排比較。

流程核心 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.

d6109704c9d6.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.

常見問題

常見問題

查看所有工作流
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