Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
AI → Generate Image
AI-generatedOverview
The node provides an AI-powered image generation feature. It allows users to create images based on textual descriptions (prompts). This is useful in scenarios such as generating creative visuals for marketing, prototyping design concepts, or producing unique artwork without manual graphic design.
For example, a user can input a prompt like "A beautiful sunset over the mountains" and receive one or more generated images matching that description at a specified resolution.
Properties
| Name | Meaning |
|---|---|
| Text Prompt | The descriptive text used to generate the image. Example: "A beautiful sunset over the mountains". |
| Number of Results | How many images to generate, from 1 up to 10. |
| Resolution | The size of the generated images. Options are: 256x256, 512x512, or 1024x1024 pixels. |
Output
The output contains a JSON field with the generated images' data. Each result typically includes URLs or base64-encoded image data representing the generated images. The node does not explicitly mention binary output, so it likely returns image URLs or JSON metadata rather than raw binary data.
Dependencies
- Requires an API key credential for authentication with the external AI image generation service.
- The node sends a POST request to the endpoint
/ai/generateimagewith the prompt, number of results, and size parameters. - The base URL for requests is
https://prod.0codekit.com.
Troubleshooting
- Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Providing an empty or invalid prompt may result in errors or no images generated.
- Requesting more than 10 images or unsupported resolutions may cause validation errors.
- Error messages:
- Authentication errors: Ensure the API key credential is correctly configured.
- Validation errors: Check that the prompt is non-empty, the number of results is between 1 and 10, and the resolution is one of the supported options.
- Network or service errors: Verify network connectivity and service availability.
Links and References
- No direct links provided in the source code. For further details, consult the documentation of the external AI image generation API used by this node.