Wiro - Stable Diffusion With Llm
AI-generatedOverview
This node integrates Stable Diffusion image generation with a large language model (LLM) to provide enhanced control over the generated images. It is useful for scenarios where users want to generate images based on detailed prompts, including background and negative prompts, with options to specify canvas, seed, and number of output samples. For example, it can be used to create customized artwork or visual content by providing descriptive prompts and controlling output variations.
Use Case Examples
- Generating an image with a specific background and avoiding certain elements using negative prompts.
- Creating multiple image samples from a single prompt to choose the best output.
- Using a seed value to reproduce a specific image generation result.
Properties
| Name | Meaning |
|---|---|
| Prompt | The main text prompt describing the desired image content. |
| Background Prompt | Additional prompt to specify background details for the image. |
| Negativeprompt | Text prompt specifying elements to exclude from the image. |
| Canvas | The canvas or base image on which the generation is applied. This is a required input. |
| Seed | Seed value to control randomness and reproduce specific outputs. |
| Numberofoutputs | Number of image samples to generate. |
Output
JSON
taskid- Identifier of the image generation task.url- URL of the generated image once the task is completed.status- Status of the image generation task, e.g., 'completed' or 'failed'.
Dependencies
- Requires API key and secret credentials for the Wiro API service to authenticate requests.
Troubleshooting
- If the API response does not include a valid task ID or socket access token, the node throws an error indicating an invalid response from the Wiro API.
- Task status codes '-1', '-2', '-3', and '-4' indicate failure states; users should check the input parameters and API credentials if the task fails.
- Ensure the 'Canvas' property is provided as it is required; missing this will likely cause the API request to fail.