### Project Setup and Server Startup Commands Source: https://github.com/mahmoudalnkeeb/ideogram-creations/blob/main/README.md Commands required to install project dependencies, start the Redis server (a prerequisite), and launch the main application server, making the API available locally. ```bash npm install redis-server npm run start ``` -------------------------------- ### Environment Variables Configuration Source: https://github.com/mahmoudalnkeeb/ideogram-creations/blob/main/README.md Essential environment variables for configuring the application, including network port, external service URLs, SSL settings, Redis connection, and image generation wait times. ```bash PORT=3000 EXTERNAL_PHOTO_URL="This can be found in the ideogram.ai in /login request payload" LOCATION = "This can be found in the ideogram.ai in /submit request payload" SSL_ENABLED=false SSL_KEY_PATH="SSL KEY PATH GOES HERE" SSL_CERT_PATH="SSL CERT PATH GOES HERE" USE_QUEUE=true REDIS_URL="redis://localhost:6379" WAIT_TIME_SECONDS=30 # 30 for free tier and 3 for pro tier ``` -------------------------------- ### API Endpoint: POST /create-image Source: https://github.com/mahmoudalnkeeb/ideogram-creations/blob/main/README.md Documentation for the `POST /create-image` API endpoint, which accepts a text prompt to generate images and returns an array of URLs to the generated images. ```APIDOC POST /create-image Description: Generates images based on a text prompt. ``` ```json { "prompt": "A scene of a room with a giant PC. The PC has a glass casing and is filled with liquid. There are control panels around the PC. The room has an industrial feel, with pipes and vents on the walls." } ``` ```json [ "https://ideogram.ai/assets/image/lossless/response/{response_id}", "https://ideogram.ai/assets/image/lossless/response/{response_id}", "https://ideogram.ai/assets/image/lossless/response/{response_id}", "https://ideogram.ai/assets/image/lossless/response/{response_id}" ] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.