tools.comfyui_generate_image module
Image generation via Civitai API.
Generates AI images using Civitai’s generation service and returns the image file path or download URL.
- async tools.comfyui_generate_image.run(prompt, negative_prompt=None, width=1024, height=1024, steps=30, cfg=4.0, seed=None, scheduler='DPM2MKarras', model_urn=None, clip_skip=2, ctx=None)[source]
Execute this tool and return the result.
- Parameters:
prompt (
str) – The prompt value.negative_prompt (
str) – The negative prompt value.width (
int) – The width value.height (
int) – The height value.steps (
int) – The steps value.cfg (
float) – Bot configuration object.seed (
int) – The seed value.scheduler (
str) – The scheduler value.model_urn (
str) – The model urn value.clip_skip (
int) – The clip skip value.ctx (
ToolContext|None) – Tool execution context providing access to bot internals.
- Returns:
Result string.
- Return type: