AI
Pass

How to Build AI Apps Without Managing API Keys — The Developer's Guide for 2026

How to Build AI Apps Without Managing API Keys — The Developer's Guide for 2026

Building AI apps is genuinely fun in 2026. The models are incredible, the tools are mature, and you can go from idea to working prototype in an afternoon.

The part that's not fun? API key management.

Every AI app you build faces the same ugly infrastructure problem:

  • Store user API keys securely (complex)
  • Build a billing system (very complex)
  • Handle rate limits per user (annoying)
  • Deal with keys being leaked or abused (stressful)
  • Manage subscription logic (ongoing maintenance forever)

Most AI side projects die here. Not because the idea was bad, but because the infrastructure overhead wasn't worth it.

The Better Pattern: Let Users Handle Their Own Billing

There's a different architecture that eliminates this entire problem.

Instead of your app managing API calls and billing, users authenticate with their own AI Pass account and pay for their own usage. You never touch an API key. You never manage billing. You never deal with leaked credentials.

And you still earn money — 50% commission on every API call your users make, automatically tracked via your Client ID.

How It Works

// One script tag + three lines of initialization
<script src="https://aipass.one/aipass-sdk.js"></script>

AiPass.initialize({
  clientId: 'YOUR_CLIENT_ID',  // From Developer Dashboard → OAuth2 Clients
  requireLogin: true,           // SDK shows auth automatically
  darkMode: true
});

When a user opens your app:

  1. If they're not logged in → SDK shows a login/signup modal automatically
  2. User creates a free account (gets $1 credit)
  3. They use your app → their credit is deducted
  4. You get 50% of the commission margin

That's it. No backend. No database. No billing infrastructure.

Getting Your Client ID

  1. Sign up at aipass.one and verify your email
  2. Go to Developer DashboardOAuth2 Clients
  3. Create a new client (name it after your app)
  4. Copy the Client ID (format: client_XXXX...)

⚠️ Your Client ID is what tracks your commissions. Keep it in your code but don't share it publicly. It's distinct from your API key — the Client ID is for OAuth flows, not direct API calls.

SDK Methods Available

// Text generation
const r = await AiPass.generateCompletion({
  model: 'gpt-5-mini',
  temperature: 1,      // Required for GPT-5 models
  max_tokens: 16000,   // Required for complete responses
  messages: [...]
});
const text = r.choices[0].message.content;

// Image generation
const img = await AiPass.generateImage({ model: 'flux-pro/v1.1', prompt: '...' });
const url = img.data[0].url;

// Image editing
const edited = await AiPass.editImage({ model: 'gemini/gemini-3-pro-image-preview', messages: [...] });

// Text to speech
const audio = await AiPass.generateSpeech({ model: 'tts-1', input: 'Hello world', voice: 'nova' });

// Video generation
const vid = await AiPass.generateVideo({ model: 'gemini/veo-3.1-fast-generate-preview', prompt: '...' });

Real Apps Built This Way

Here are apps you can browse right now that use this exact pattern:

Each of these was built in a few hours, deployed as a static HTML file, and earns commission on every use.

Deploy Options

Option A: Anywhere That Hosts HTML (Recommended)

# GitHub Pages (free, permanent URL)
git init && git add index.html && git commit -m "my app"
git remote add origin https://github.com/you/my-app.git
git push -u origin main
# Enable Pages in Settings → Pages → main branch

# Netlify (instant, custom domain support)
netlify deploy --dir . --prod

# Vercel
vercel --prod

The SDK works from any domain. No server required.

Option B: AI Pass Catalog

Publish on aipass.one/apps/your-app-name — your app gets a dedicated page, plus an embed </> button that generates iframe code anyone can use on their own site.

The Commission Math

Say you build a YouTube SEO tool that 100 creators use weekly.

  • Each optimization: ~$0.05 in API costs
  • AI Pass margin: 20% = $0.01
  • Your 50% share: $0.005 per generation
  • 100 users × 5 generations/week: 500 × $0.005 = $2.50/week

Small numbers at first. But a portfolio of 10 apps, each with 100–1000 users, compounds quickly.

Start Building Today

The entire workflow — from signing up to having a working app — takes under an afternoon.

  1. Create account and verify email
  2. Get Client ID from Developer Dashboard
  3. Build your app (HTML + one script tag)
  4. Deploy to GitHub Pages or Netlify
  5. Start earning commission

Start building →

SDK docs: aipass.one/docs/sdk/reference.html