generate_image
Generate images from text prompts using UGCmind, ComfyUI, or OpenAI-compatible APIs. Choose provider, size, model, and quality for flexible image creation.
Instructions
Generate an image. Supports UGCmind App Runtime, local ComfyUI workflows, or OpenAI-compatible image APIs. UGCmind remains the default when UGCMIND_API_KEY is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size for OpenAI-compatible providers, for example "1024x1024", "1536x1024", or "auto". | |
| model | No | Model id. For UGCmind, use list_models or App UI. For OpenAI-compatible providers, use any model your endpoint supports. | |
| prompt | Yes | The image generation prompt. | |
| quality | No | Provider-specific quality hint passed through to the selected runtime. | |
| fileName | No | Desired UGCmind artifact filename. Defaults to generated-image.png. | |
| provider | No | Generation provider. Defaults to UGCmind when UGCMIND_API_KEY is configured; otherwise ComfyUI workflow, then OpenAI-compatible. | |
| workflow | No | ComfyUI workflow name to use. Manage workflows with the comfyui_workflow tool. | |
| resolution | No | Provider-specific resolution hint passed through to the selected runtime. | |
| aspectRatio | No | Aspect ratio for UGCmind App Runtime, for example "1:1", "16:9", "9:16", "4:3", or "auto". | |
| modelOptionId | No | UGCmind Tool Runtime model option id. Omit to use the App/project default. | |
| referenceImages | No | Reference images. UGCmind/OpenAI-compatible providers accept public URLs. ComfyUI accepts public URLs or local file paths when the workflow has LoadImage nodes. |