Generate an image
generate_imageCreate images from text prompts via free Hugging Face Spaces, edit reference pictures, or render legible text. Saves each image with a JSON sidecar of prompt, parameters, seed, and response.
Instructions
Generate an image from a text prompt through a free Hugging Face Space. Writes the image and a .json sidecar with the prompt, the parameters, the seed and the raw Space response. Use klein with reference_images to edit an existing picture, qwen when the image has to carry legible text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name prefix; defaults to the model name. | |
| seed | No | Seed; change it for another take. | |
| size | No | Aspect ('16:9') or exact size ('1280x720'). | 1:1 |
| count | No | How many takes to generate. | |
| model | No | Which Space to use. | zimage |
| prompt | Yes | What the image should show. | |
| out_dir | No | Where to write the file. | out/images |
| enhance_prompt | No | qwen only: let the Space rewrite the prompt. | |
| reference_images | No | klein only: images to edit or restyle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | What the engine printed while it worked. | |
| files | Yes | Everything that was written. |