Actions2
Overview
This node integrates with Pollinations.AI to either list available image generation models or generate images based on text prompts. It is useful for automating creative image generation workflows, such as generating unique visuals for marketing, content creation, or artistic projects. For example, users can list all AI models supported by Pollinations.AI or generate images by specifying prompts, models, dimensions, and other parameters.
Use Case Examples
- List all available image generation models from Pollinations.AI.
- Generate an image from a text prompt using a specified AI model, with options for image size, seed for reproducibility, watermark removal, prompt enhancement, privacy settings, safe content filtering, and image-to-image transformation.
Properties
| Name | Meaning |
|---|---|
| Operation | Specifies the action to perform: either 'List Models' to retrieve available AI models or 'Generate Image' to create an image from a prompt. |
Output
Binary
Contains the generated image data in PNG format when the 'Generate Image' operation is used.
JSON
models- An array of available image generation models returned when listing models.prompt- The text prompt used to generate the image.model- The AI model used for image generation.width- Width of the generated image in pixels.height- Height of the generated image in pixels.seed- Seed number used for image generation to ensure reproducibility; 'random' if not specified.imageUrl- URL of the generated image.error- Error message if the operation fails and 'continueOnFail' is enabled.
Dependencies
- Requires Pollinations.AI API token for authentication.
Troubleshooting
- Common issues include missing or invalid API token, resulting in authentication errors. Ensure the API token is correctly set in the node credentials.
- Timeout errors may occur if the API request takes too long; verify network connectivity and API service status.
- If the 'List Models' operation returns an error, check the API token validity and network access.
- For image generation, invalid parameters (e.g., unsupported model or invalid dimensions) may cause errors; verify input values.
Links
- Pollinations.AI Models API - API endpoint to list available image generation models.
- Pollinations.AI Image Generation API - API endpoint to generate images from text prompts.