Overview
This node integrates with Pollinations.AI to perform text generation tasks. It supports three main operations: listing available AI text generation models, generating text from a simple prompt, and generating text with advanced options including conversation messages and system prompts. This node is useful for automating content creation, generating conversational AI responses, or exploring different AI models for text generation.
Use Case Examples
- Listing all available AI models to choose the best one for a task.
- Generating a text response from a simple user prompt, such as answering questions or creating content.
- Using advanced generation with conversation history and system instructions to simulate complex dialogues or customized AI behavior.
Properties
| Name | Meaning |
|---|---|
| Operation | The action to perform: list available models, generate text simply, or generate text with advanced options. |
| Prompt | The input text prompt for simple text generation (required for simple generate operation). |
| Model | The AI model to use for text generation, loaded dynamically from Pollinations.AI models. |
| Temperature | Controls creativity of the generated text, from strict (0.0) to wild (3.0). |
| Seed | Optional seed number for consistent responses; leave empty for random. |
| System Prompt | Instructions to guide the AI's behavior during text generation. |
| JSON Response | Whether to receive the response in JSON format (boolean). |
| Stream | Whether to receive the response in real-time chunks (boolean). |
| Messages | Collection of conversation messages with roles (system, user, assistant) for advanced generation. |
| Max Tokens | Maximum length of the generated response for advanced generation. |
| Reasoning Effort | Depth of AI reasoning before responding, from minimal to high. |
Output
JSON
models- List of available AI text generation models (for listModels operation).prompt- The input prompt used for text generation (for generate operation).model- The AI model used for text generation.response- The generated text response or raw API response.fullResponse- Full API response object including choices and metadata (for generateAdvanced operation).error- Error message if the operation failed and continueOnFail is enabled.
Dependencies
- Pollinations.AI API token credential required for authentication.
Troubleshooting
- Missing or invalid API token will cause authentication errors; ensure the Pollinations.AI API token is correctly set in credentials.
- If no messages are provided for the advanced generate operation, an error is thrown; ensure at least one message is included.
- Network timeouts or API request failures may occur; check network connectivity and API status.
- If the model list fails to load, verify the API token and Pollinations.AI service availability.
Links
- Pollinations.AI Models API - Endpoint to retrieve available AI text generation models.
- Pollinations.AI OpenAI Endpoint - Endpoint for advanced text generation with conversation messages.