Wiro - Convert Text to Image icon

Wiro - Convert Text to Image

Converts texts to images using Wiro AI

Overview

This node converts textual descriptions into images using the Wiro AI service. It is designed for scenarios where users want to generate visual content based on detailed prompts, such as creating concept art, illustrations, or design mockups from text descriptions. For example, a user can input a prompt describing a futuristic cityscape and receive generated images matching that description.

The node sends the prompt and related parameters to the Wiro API, waits for the image generation task to complete by polling the service, and then outputs the result including the status and URL of the generated image.

Properties

Name Meaning
Prompt Enter a description of what you want to see in the generated image.
Negative Prompt Specify elements or features you do NOT want included in the image.
Steps Number of inference steps used to generate the image (affects quality and detail).
Scale Guidance scale controlling how closely the image follows the prompt (higher = stricter).
Samples Number of output images to generate.
Seed Random seed value for reproducibility of results.
Width Width of the output image in pixels.
Height Height of the output image in pixels.

Output

The node outputs a JSON object with the following structure:

{
  "taskid": "string",
  "url": "string",
  "status": "string"
}
  • taskid: Identifier of the image generation task.
  • url: The URL where the generated image can be accessed (empty if generation failed).
  • status: Status of the task, which can be "completed" if successful or "failed" otherwise.

The node does not output binary image data directly but provides a URL to access the generated images.

Dependencies

  • Requires an API key credential for authenticating with the Wiro AI service.
  • Makes HTTP POST requests to the Wiro API endpoint at https://api.wiro.ai/v1/Run/wiro/text-to-image-sana.
  • Uses a helper function to generate authentication headers for the API requests.
  • Polls the Wiro service until the image generation task completes, using a polling utility.

Troubleshooting

  • Missing or invalid API credentials: Ensure that the API key and secret are correctly configured in the node credentials.
  • API response missing task ID or socket token: This indicates an issue with the request or the API service; verify all required parameters and network connectivity.
  • Task status returns "failed": The image generation did not succeed; check the prompt and parameters for validity and try again.
  • Timeouts during polling: Network issues or slow processing on the API side may cause delays; consider increasing timeout settings if available.

Links and References

Discussion