Marketing Architects icon

Marketing Architects

Consume Marketing Architects API

Actions7

Overview

The node integrates with the Marketing Architects API to generate images based on user-defined prompts and parameters. It is particularly useful for creative professionals, marketers, or developers who want to automate image creation using AI models. For example, you can generate a beautiful image of a cat or create custom images with specific aspect ratios or reference images.

Typical use cases include:

  • Automatically generating marketing visuals from text prompts.
  • Creating character-based images by providing reference images.
  • Producing images with specific dimensions or masks for inpainting tasks.

Properties

Name Meaning
Model Select an AI model for image generation from a dynamically loaded list of available models filtered by type "image". You can also specify a model ID via expression.
Prompt The textual description or prompt that guides the image generation (e.g., "a beautiful image of a cat").
Options Additional optional parameters to customize the image generation:
- Aspect Ratio Choose the aspect ratio of the generated image. Options: 1:1, 16:9, 9:16.
- Character Reference Image URL of a character reference image to influence the generated image.
- Image Input One or more URLs of images to be used as input references for generation.
- Input Image A single input image URL to guide the generation process.
- Mask A mask image URL used for inpainting parts of the image during generation.
Retry Settings Configure retry behavior if the request fails:
- Enable Retry on Failure Boolean to enable or disable automatic retries.
- Max Retry Attempts Maximum number of retry attempts (between 1 and 10).
- Retry Delay (Seconds) Delay between retry attempts in seconds (between 1 and 60).
- Backoff Strategy Strategy for delay calculation between retries: Fixed (constant delay) or Exponential (increasing delay).

Output

The node outputs JSON data containing the results of the image generation request. Typically, this includes metadata about the generated image(s), such as URLs or IDs referencing the created images. If the API supports binary data output (e.g., raw image files), the node would handle it accordingly, but here the focus is on JSON responses describing the generated images.

Dependencies

  • Requires an API key credential for authenticating with the Marketing Architects API.
  • The node makes HTTP POST requests to the endpoint /image/replicate on the base URL https://pushbtn.api.misfitsandmachines.com.
  • Dynamic loading of available image generation models is done via a GET request to /replicate/models filtered by type "image".
  • Proper network connectivity and valid API credentials are necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing API key will cause authentication failures.
    • Providing an unsupported model ID or prompt may result in errors or empty results.
    • Network issues or API downtime can cause request failures.
  • Error Messages:

    • Errors returned by the API are processed and surfaced by the node. Common messages might relate to invalid parameters or rate limits.
    • If retries are enabled, transient errors may be automatically retried according to configured settings.
  • Resolutions:

    • Verify API credentials and permissions.
    • Ensure the model ID exists and is accessible.
    • Adjust retry settings to handle intermittent failures.
    • Check prompt formatting and input URLs for correctness.

Links and References

Discussion