This is a Next.js project using the Lepton AI. It is a starter template to help you get started with building applications that use the Lepton API.
-
Clone the repository and
cd
into the directorygit clone [email protected]:leptonai/nextjs-with-lepton.git my-nextjs-with-lepton # or git clone https://github.com/leptonai/nextjs-with-lepton.git my-nextjs-with-lepton cd my-nextjs-with-lepton
-
Install the dependencies
npm run dev # or yarn dev # or pnpm dev
-
Copy
.env.local.example
to.env.local
and set theLEPTON_API_TOKEN
to your Lepton API token.You can get your Lepton API token from the Lepton AI Dashboard
cp .env.local.example .env.local
-
Start the development server
npm run dev
Open http://localhost:3000 with your browser to see the result.