Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
The node provides a "Generate Picture" operation within the "Generate" resource category. It allows users to generate an image based on a keyword prompt. This is useful in scenarios where automated image creation is needed, such as generating visual content for marketing, social media posts, or creative projects without manual design work.
For example, a user can input a descriptive keyword like "sunset over mountains" and receive a generated picture matching that description. The node also supports returning the generated picture either as a direct URL or potentially as binary data (depending on configuration).
Properties
| Name | Meaning |
|---|---|
| Code Variables | A collection of code variables defined in the code editor for the selected function. Each variable has a name/ID and a value. Useful for passing dynamic values into code execution contexts. |
| Keyword | The descriptive keyword or phrase used to generate the picture. |
| Get File as URL | Boolean flag indicating whether the generated picture should be returned as a URL (true) or not (false). |
Output
The output JSON contains the result of the picture generation request. Typically, this will include either:
- A URL pointing to the generated picture if "Get File as URL" is enabled.
- Otherwise, it may contain the raw image data or metadata about the generated picture.
If binary data output is supported (not explicitly detailed here), it would represent the actual image file content.
Dependencies
- Requires an API key credential for authentication with the external service providing the image generation functionality.
- The node makes HTTP POST requests to an external API endpoint corresponding to the "generate/picture" operation.
- No other explicit environment variables or configurations are indicated.
Troubleshooting
- Common issues:
- Missing or invalid API key credential will cause authentication failures.
- Providing an empty or invalid keyword may result in errors or no image generated.
- Network connectivity issues can prevent successful API calls.
- Error messages:
- Authentication errors typically indicate problems with the API key setup.
- Validation errors may occur if required parameters like "keyword" are missing or malformed.
- Resolutions:
- Ensure the API key credential is correctly configured and valid.
- Provide meaningful keywords for image generation.
- Check network access and retry failed requests.
Links and References
- n8n Expressions Documentation — for using expressions in variable definitions.
- External API documentation for the image generation service (not provided in source).