Wiro - Text To Image Sana
AI-generatedOverview
This node integrates with the Wiro API to generate images from text prompts using the Sana text-to-image framework. It allows users to specify various parameters such as the model, prompt, negative prompt, inference steps, guidance scale, number of samples, seed, and image dimensions. The node sends a request to the Wiro API to start the image generation task, then polls the task status until completion, and finally outputs the result including the task ID, status, and generated image URL if successful. This node is useful for automating image creation based on textual descriptions, suitable for creative projects, content generation, or AI-assisted design.
Use Case Examples
- Generating an image from a descriptive prompt for marketing materials.
- Creating multiple image samples from a prompt to select the best one.
- Using negative prompts to exclude unwanted elements in generated images.
Properties
| Name | Meaning |
|---|---|
| Select Model | The model to be used for image generation. |
| Select Model Private | A private model option for image generation. |
| Prompt | The main text prompt describing the image to generate. |
| Negative Prompt | Text prompt specifying elements to avoid in the generated image. |
| Inferencesteps | Number of inference steps to control image generation quality and detail. |
| Guidancescale | Guidance scale to influence adherence to the prompt during generation. |
| Samples | Number of image samples to generate. |
| Seed | Seed value for random number generation to reproduce results. |
| Width | Width of the generated image in pixels. |
| Height | Height of the generated image in pixels. |
Output
JSON
taskid- The unique identifier of the image generation task.url- The URL of the generated image if the task completed successfully.status- The status of the image generation task, e.g., 'completed' or 'failed'.
Dependencies
- Wiro API with API key and secret for authentication
Troubleshooting
- If the node throws an error about missing task ID or socket access token, verify that the Wiro API credentials are correct and the API is responding properly.
- If the task status returns as 'failed', check the input parameters for validity and ensure the selected model is available.
- Network or authentication issues may cause HTTP request failures; ensure network connectivity and valid API credentials.