Text to AI Image
Overview
Description
The Prompt to AI Image module allows Mendix developers to integrate AI-powered image generation into their applications with minimal setup.By connecting to the AI Text to Image Generator (Flux Free) API via RapidAPI, users can simply enter a text prompt, choose a style, and instantly generate AI-generated images within their Mendix app and can be downloaded.
This module includes a preconfigured nanoflow (ACT_Get_Response), sample landing page, and easy API key configuration—making it simple to get started with AI image generation and download in Mendix.
Documentation
Text (Prompt) to AI Image
Objective
The Prompt to AI Image module enables Mendix developers to integrate AI-powered image generation directly into their Mendix applications.By connecting to the AI Text to Image Generator (Flux Free) API from RapidAPI, users can enter a text prompt and generate corresponding AI images dynamically within their Mendix app.
This module provides:
- A preconfigured Nanoflow (ACT_Get_Response) for making API calls.
- Easy integration with RapidAPI subscription key.
- Out-of-the-box usage: developers just plug in their API key and start generating AI images.
Dependencies
Before using this module, ensure the following dependencies are met:
- Mendix Studio Pro
- Version: 10.24 or higher.
- RapidAPI Subscription
- API: AI Text to Image Generator (Flux Free)
- Users must create a RapidAPI account and subscribe to the API.
- API Key
- After subscribing, generate your X-RapidAPI-Key.
- This key is required for authenticating requests in the ACT_Get_Response nanoflow.
Configuration
Follow these steps to configure and start using the module in your Mendix app:
- Import the Module
- Download and import the Prompt to AI Image module into your Mendix project.
- Map the user role.
- Use or call the MyFirstLogic Microflow to trigger the Promt to AI Image landing page.
- Add API Key to Nanoflow
- Open the nanoflow ACT_Get_Response inside the module.
- Locate the REST Call action.
- In the request header, set:
- "X-RapidAPI-Key" = "<your_api_key_here>"
- Replace <your_api_key_here> with your personal key from RapidAPI.
- Run the application and enter the prompt in the text area field and select the style type by clicking choose style button.
- After the Style type selected click the Generate button.
- Here you will get the response Image for the prompt you entered.
- On clicking download button the generated response image can be downloaded.