Skip to content

Demo app for "Securing a GenAI Service with API Key Validation and Trial Management" tutorial

Notifications You must be signed in to change notification settings

PropelAuth/demo-genai-api-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial: Securing a GenAI Service with API Key Validation and Trial Management

This is the reference app for the "Securing a GenAI Service with API Key Validation and Trial Management" tutorial. Follow along to create a system where users can sign up for a free 7-day trial, upgrade to a paid plan, and use their API key to generate images.

What You'll Build

We'll build an image generation API similar to Midjourney. To complete this tutorial, we’ll leverage PropelAuth’s API Key Authentication, custom user properties, and account management features. We’ll also create an Express API with endpoints to simulate Stripe payment processing and image creation.

Components

How to Run

  1. Clone this repository.
  2. In a terminal, change directory into the repo: cd demo-genai-api-keys.
  3. Install all packages: npm install.
  4. Build then run on localhost: npm run dev.

About

Demo app for "Securing a GenAI Service with API Key Validation and Trial Management" tutorial

Topics

Resources

Stars

Watchers

Forks