Artemisia AI was built using a Next.js template project that's preconfigured to work with Replicate's API and Tailwind utility-first CSS framwork. It was created for educational purposes and to demonstrate the potential of AI models for content generation.
Artemisia AI uses Stable Diffusion XL (SDXL), an upgraded version of Stable Diffusion generative AI model created by Stability AI. This advanced generative model allows users to generate highly detailed images using shorter text prompts compared to the original Stable Diffusion model. Replicate API is used to run the model in the cloud.
The name "Artemisia" is inspired by Artemisia Gentileschi, an Italian Baroque painter.
- pages/index.js - The React frontend that renders the home page in the browser
- pages/api/predictions/index.js - The backend API endpoint that calls Replicate's API to create a prediction
- pages/api/predictions/[id].js - The backend API endpoint that calls Replicate's API to get the prediction result
Clone this repository
git clone [email protected]:LeandroBerlin/artemisia-ai.git
Install dependencies:
npm install
Add your Replicate API token to .env.local
:
REPLICATE_API_TOKEN=<your-token-here>
Run the development server:
npm run dev
Open http://localhost:3000 with your browser.