A FastAPI-based web service for generating memes using a text-to-image API.
- Clone the repository.
- Create a virtual environment and activate it.
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file in the root directory and add your API token:TOKEN=your_api_token_here
- Run the application:
uvicorn app.main:app --reload
POST /generate
: Generates an image based on the provided text prompt.
{
"text": "Bitcoin to the moon",
"cfg_scale": 2,
"height": 1024,
"width": 1024,
"steps": 8,
"engine": "proteus"
}