Skip to main content

TL;DR

Every AI website comes with:
  1. Payments – Stripe integration via Autumn (accept money instantly)
  2. Auth – BetterAuth with email/OAuth/magic links (user accounts ready)
  3. LLM Gateway – 13+ AI models with credit-based billing (add AI features easily)
All three systems are pre-configured with secret keys, database schemas, and environment variables. Just follow the implementation guides and start building.

What’s Pre-Configured in Your AI Website

When you create an AI website, we automatically set up three powerful systems so you can build advanced features right away:
1

Payments (Stripe via Autumn)

What You Get:
  • Automatic Payment Infrastructure – Every website gets its own Autumn organization with Stripe integration ready to go
  • Stripe Connect OAuth – One-click connection to your Stripe account (test or live mode)
  • Secret Keys – Pre-configured AUTUMN_SECRET_KEY in your environment for processing payments
  • Full Payment Features – Accept one-time payments, subscriptions, manage products, track transactions
How It Works:
  • Autumn organization is created automatically when you initialize your website
  • You connect your Stripe account via OAuth (we provide the redirect URL)
  • Your website can process payments immediately using the Autumn API
  • All payment data flows through your Stripe account (you keep full control)
What You Can Build:
  • Subscription services
  • One-time purchases
  • Product catalogs
  • Payment dashboards
  • Billing management
2

Authentication (BetterAuth)

What You Get:

  • Complete Auth System – Email/password, magic links, and OAuth providers (Google, Apple, Microsoft)
  • User Database – Pre-configured tables for users, sessions, accounts, verification tokens, and API keys
  • Session Management – 30-day sessions with automatic renewal, IP tracking, and user agent logging
  • Role-Based Access – Admin roles and permissions built-in
  • API Key Management – Generate and manage API keys with rate limiting
Security Features:
  • Auto-generated BETTER_AUTH_SECRET (32-byte cryptographically secure key)
  • Protected environment variables (can’t be accidentally overwritten)
  • Email verification flows
  • Session expiration and rotation
  • Password hashing and salting
What You Can Build:
  • User signup/login pages
  • Social login (Google/Apple/Microsoft)
  • Password reset flows
  • Admin dashboards
  • Multi-tenant applications
  • API key authentication for developers
Implementation:Database schema already created (users, sessions, OAuth accounts)
3

LLM Gateway (AI Model Access)

What You Get:

  • 13+ AI Models – GPT-5 family, Gemini 3 Pro/Flash, Claude Sonnet/Opus/Haiku
  • Dedicated API Key – Your website gets a unique AI_GATEWAY_API_KEY for making AI requests
  • Gateway Endpoint/api/gateway/v1 proxies requests to OpenAI, Google, and Anthropic
  • Usage Tracking – Automatic token counting and credit billing
  • Rate Limiting – Configurable limits per API key (default: 10 requests/24 hours)
How Billing Works:
  • Token usage calculated per model (different input/output rates)
  • Gateway checks credit balance before each request
  • Returns 402 Payment Required if insufficient credits
  • Returns 429 Too Many Requests if rate limit exceeded
  • Minimum 1 credit per request
What You Can Build:
  • AI chatbots
  • Content generation tools
  • Image analysis features
  • Voice assistants (with TTS models)
  • Smart search and recommendations
  • AI-powered forms and workflows
API Access:
  • Standard OpenAI-compatible endpoints (/v1/chat/completions)
  • List available models (/v1/models)
  • Streaming support for real-time responses
  • Automatic credit deduction after each request