Pollinations.AI Image icon

Pollinations.AI Image

Generate images using Pollinations.AI

Overview

This node generates images using the Pollinations.AI service based on a text prompt or transforms an existing image. It supports selecting different AI models, specifying image dimensions, and various options like seed for reproducibility, watermark removal, prompt enhancement, privacy settings, and content filtering. It is useful for creative projects, marketing visuals, concept art, or any scenario requiring AI-generated images.

Use Case Examples

  1. Generate a 1024x1024 image of a futuristic cityscape using the 'flux' model.
  2. Transform an existing image by providing its URL and enabling the image-to-image option with the 'kontext' model.
  3. Generate a private image with enhanced prompt and no watermark for commercial use.

Properties

Name Meaning
Prompt Text description of the image you want to generate.
Model The AI model to use for image generation, loaded dynamically from the API.
Width Image width in pixels.
Height Image height in pixels.
Seed A number to get the same image every time; leave empty for random.
Remove Watermark Whether to remove the Pollinations watermark (requires account).
Enhance Prompt Let AI improve your prompt for better results.
Private Hide the image from public feeds.
Safe Content Filter Enable strict NSFW filtering.
Image-to-Image Transform an existing image (requires kontext model).
Input Image URL URL of the input image to transform (used only if Image-to-Image is enabled).

Output

Binary

The node outputs the generated image as binary data, typically in PNG format, allowing downstream nodes to handle or save the image file.

JSON

  • prompt - The original text prompt used for image generation.
  • model - The AI model used for generating the image.
  • width - Width of the generated image in pixels.
  • height - Height of the generated image in pixels.
  • seed - Seed value used for image generation or 'random' if none provided.
  • imageUrl - The URL from which the generated image can be accessed.

Dependencies

  • Requires Pollinations.AI API token for authentication, provided via node credentials.

Troubleshooting

  • Common issues include missing or invalid API token, which results in authentication errors. Ensure the API token is correctly set in the node credentials.
  • Timeout errors may occur if the image generation takes too long; consider adjusting timeout settings or simplifying the prompt.
  • If the image-to-image transformation is used, ensure the 'kontext' model is selected as required by the service.

Links

Discussion