gate_txt2img
Generate an image or video from a text prompt using the active ComfyUI pipeline, then return full output URLs for use in your workflow.
Instructions
Generate an image or video from a text prompt using the active profile's pipeline (MOSS-Image DeBand, FLUX.2 Klein 4B, Wan 2.2 5B TI2V, or SD 3.5 Large fp8). Returns full output URLs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "gate_txt2img"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducible generation (optional, default random integer). | |
| width | No | Output width in pixels (default: 1024; for wan-ltx-video defaults to 832 if left at 1024). | |
| height | No | Output height in pixels (default: 1024; for wan-ltx-video defaults to 480 if left at 1024). | |
| preset | No | Speed/quality preset (for moss-image): 'Fast alt' (default, 10 steps, recommended), 'Fast' (10 steps), 'Balanced' (14 steps), 'Quality' (25 steps). | |
| prompt | Yes | Text description of the image or video to generate (positive prompt). | |
| negative_prompt | No | Optional negative prompt elements to avoid (default: 'worst quality, bad anatomy, watermark, jpeg artifact'). | |
| timeout_seconds | No | Maximum seconds to wait for generation (default: 180). |