Wiro - Imagen V4
AI-generatedOverview
This node integrates with Google's Imagen V4 model via the Wiro API to generate images based on a text prompt. It is useful for scenarios where users want to create AI-generated images with customizable parameters such as number of outputs, seed for watermarking, prompt enhancement, aspect ratio, person generation settings, language, and safety settings. For example, a user can generate multiple images from a descriptive prompt, control the inclusion of people in images, and apply invisible watermarks.
Use Case Examples
- Generating a single image with a specific prompt and aspect ratio.
- Creating multiple images with enhanced prompt rewriting for better quality.
- Generating images with a watermark by setting the seed to 0.
Properties
| Name | Meaning |
|---|---|
| Prompt | The text prompt used to generate the image. |
| Numberofoutputs | The number of images to generate (1 to 4). |
| Seed | Seed value for image generation; set to 0 to add an invisible watermark. |
| Enhance Prompt | Whether to use an LLM-based prompt rewriting feature to improve image quality. |
| Add Watermark | Whether to add an invisible watermark to the generated images. Automatically set to false if seed is not 0. |
| Aspect Ratio | Aspect ratio of the generated image. |
| Person Generation | Controls the inclusion of people in generated images. |
| Language | Language code corresponding to the prompt's language. |
| Safety Setting | Level of content filtering for generated images. |
Output
JSON
taskid- The unique identifier for 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 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.
- Network or authentication issues may cause HTTP request failures; ensure API credentials are correct and network connectivity is stable.
- If the polling for task completion returns error codes (-1, -2, -3, -4), the task status is marked as 'failed'. Check the prompt and parameters for compliance with API requirements.
Links
- Wiro API Documentation - Official documentation for the Wiro API used for image generation.