
The '3x3 Grid For Product Ads' workflow is designed to streamline the process of generating visually appealing product images for advertising purposes. By leveraging a 3x3 grid layout, this workflow allows users to upload a product image and provide a distinct prompt for each grid position. This setup results in the generation of nine unique images, each tailored to highlight different aspects or features of the product. The workflow utilizes the Nano Banana Pro model, known for its ability to maintain product integrity while adding creative variations, and the Google model for reliable image enhancement.
Technically, the workflow employs a variety of nodes to achieve its functionality. The GeminiImage2Node is crucial for image generation, while the LoadImage and SaveImage nodes manage the input and output processes. The workflow also includes custom nodes from ComfyUI-KJNodes and ComfyUI_essentials, which enhance the flexibility and customization options available to users. A unique feature of this workflow is its capability to upscale selected images to 4K resolution, ensuring high-quality outputs suitable for professional advertising. This is particularly useful for businesses looking to create impactful visual content with minimal effort.
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.
GET https://comfy.org/workflows/download/28bef9a984ce.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "3x3 Grid For Product Ads" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("templates-9grid_social_media-v2.0_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("11", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("59"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














