https://github.com/leandroberlin/artemisia-ai
Artemisia: interface to generative AI art built with Next.js and Replicate API
https://github.com/leandroberlin/artemisia-ai
generative-art nextjs replicate-api sdxl
Last synced: 2 months ago
JSON representation
Artemisia: interface to generative AI art built with Next.js and Replicate API
- Host: GitHub
- URL: https://github.com/leandroberlin/artemisia-ai
- Owner: LeandroBerlin
- License: apache-2.0
- Created: 2023-12-14T15:21:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-15T14:58:49.000Z (about 1 year ago)
- Last Synced: 2025-04-11T01:03:48.209Z (2 months ago)
- Topics: generative-art, nextjs, replicate-api, sdxl
- Language: JavaScript
- Homepage: https://artemisia-ai.vercel.app
- Size: 1.28 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Getting started
Artemisia AI was built using a [Next.js](https://nextjs.org/) template project that's preconfigured to work with [Replicate's API](https://replicate.com/docs/get-started/nextjs) and [Tailwind](https://tailwindcss.com/) 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](https://replicate.com/stability-ai/sdxl) (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](https://replicate.com) is used to run the model in the cloud.
The name "Artemisia" is inspired by [Artemisia Gentileschi](https://en.wikipedia.org/wiki/Artemisia_Gentileschi), an Italian Baroque painter.
## Noteworthy files
- [pages/index.js](pages/index.js) - The React frontend that renders the home page in the browser
- [pages/api/predictions/index.js](pages/api/predictions/index.js) - The backend API endpoint that calls Replicate's API to create a prediction
- [pages/api/predictions/[id].js](pages/api/predictions/[id].js) - The backend API endpoint that calls Replicate's API to get the prediction result## Usage
Clone this repository
```
git clone [email protected]:LeandroBerlin/artemisia-ai.git
```Install dependencies:
```console
npm install
```Add your [Replicate API token](https://replicate.com/account#token) to `.env.local`:
```
REPLICATE_API_TOKEN=
```Run the development server:
```console
npm run dev
```Open [http://localhost:3000](http://localhost:3000) with your browser.
## Screenshot
![]()