Skip to content

leptonai/nextjs-with-lepton

Repository files navigation

Next.js Lepton AI Starter

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.

DEMO

Getting Started

  1. Clone the repository and cd into the directory

    git 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
  2. Install the dependencies

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  3. Copy .env.local.example to .env.local and set the LEPTON_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
  4. Start the development server

    npm run dev

    Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

Deploy with Vercel

Help Links

About

A Next.js starter with the Lepton LLM API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •