3535``` python
3636from comfykit import ComfyKit
3737
38- kit = ComfyKit()
38+ # Connect to local ComfyUI server
39+ kit = ComfyKit(comfyui_url = " http://127.0.0.1:8188" )
3940result = await kit.execute(" workflow.json" , {" prompt" : " a cute cat" })
4041
4142print (result.images) # ['http://127.0.0.1:8188/view?filename=cat_001.png']
43+
44+ # 🌐 Or use RunningHub cloud (no local GPU needed)
45+ # kit = ComfyKit(runninghub_api_key="rh-xxx")
4246```
4347
4448### Get structured data back
@@ -129,8 +133,8 @@ import asyncio
129133from comfykit import ComfyKit
130134
131135async def main ():
132- # Initialize (uses default config )
133- kit = ComfyKit()
136+ # Connect to local ComfyUI ( default: http://127.0.0.1:8188 )
137+ kit = ComfyKit(comfyui_url = " http://127.0.0.1:8188 " )
134138
135139 # Execute workflow
136140 result = await kit.execute(
@@ -148,6 +152,8 @@ async def main():
148152asyncio.run(main())
149153```
150154
155+ > 💡 ** Tip** : ` comfyui_url ` defaults to ` http://127.0.0.1:8188 ` and can be omitted
156+
151157---
152158
153159## 📚 Usage Examples
@@ -157,8 +163,8 @@ asyncio.run(main())
157163``` python
158164from comfykit import ComfyKit
159165
160- # Connect to local ComfyUI (default)
161- kit = ComfyKit()
166+ # Connect to local ComfyUI
167+ kit = ComfyKit(comfyui_url = " http://127.0.0.1:8188 " ) # Default, can be omitted
162168
163169# Execute local workflow file
164170result = await kit.execute(" workflow.json" , {
0 commit comments