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 "0CodeKit" provides a versatile toolbox of no-code utilities, including AI-powered features. Specifically, for the AI - Generate Image operation, it generates images based on a textual prompt. This is useful in scenarios where users want to create visual content dynamically from descriptions, such as generating illustrations, concept art, or design mockups automatically.
Practical examples:
- Creating multiple variations of an image based on a creative prompt.
- Generating images at different resolutions for use in web or print media.
- Automating image creation workflows in marketing or content production pipelines.
Properties
| Name | Meaning |
|---|---|
| Prompt | The text description used to generate the image. |
| Number of Results | The number of images to generate for the given prompt. |
| Resolution | The resolution of the generated images. Allowed values: "256x256", "512x512", and "1024x1024". |
| Code Variables | Optional collection of code variables (name/ID and value) that can be passed to customize execution. |
Output
The output is a JSON array containing the results of the image generation request. Each item typically includes data representing the generated image(s). The exact structure depends on the underlying API response but generally contains URLs or base64-encoded image data corresponding to each generated image.
If binary data is involved (e.g., image files), it will be represented accordingly, allowing further processing or saving within n8n workflows.
Dependencies
- Requires an API key credential for authentication with the external 0CodeKit service.
- The node makes HTTP POST requests to the endpoint path
ai/generateImagewith parameters derived from the input properties. - No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Providing unsupported resolution values will likely result in errors; only
"256x256","512x512", and"1024x1024"are accepted. - Empty or invalid prompt strings may cause the API to reject the request or return no results.
- Requesting too many images (
Number of Results) might exceed API limits or cause timeouts.
Error messages:
- Authentication errors: Ensure the API key credential is correctly configured.
- Validation errors: Check that all required fields (Prompt, Number of Results, Resolution) are provided and valid.
- Network or timeout errors: Verify network connectivity and API service status.
Links and References
- n8n Expressions Documentation — for using expressions in variable definitions.
- Refer to the 0CodeKit API documentation (not publicly linked here) for detailed information about the AI image generation endpoint and supported parameters.