AI
Pass

Build a AI Meal Planner with AI Pass SDK

Build a AI Meal Planner with AI Pass SDK

Add AI-powered capabilities to your app with the AI Pass SDK. Auth, billing, and API routing — all handled.

What You'll Build

A web app that get personalized weekly meal plans with recipes and shopping lists. Users sign in with AI Pass, every API call billed to their wallet. You earn 50% commission on every call.

Step 1: Create OAuth2 Client

  1. Go to Developer Dashboard
  2. OAuth2 ClientsCreate New
  3. Copy your Client ID

Step 2: Add SDK

<script src="https://aipass.one/aipass-sdk.js"
        data-client-id="YOUR_CLIENT_ID"
        data-app-name="AI Meal Planner"
        data-require-login="true">
</script>

data-require-login="true" shows login automatically — no custom auth needed.

Step 3: Call AI

async function generate(prompt) {
  const r = await AiPass.generateCompletion({
    model: "openai/gpt-4.1-mini",
    messages: [
      { role: "system", content: "You are a helpful meal planner assistant." },
      { role: "user", content: prompt }
    ]
  });
  return r.choices[0].message.content;
}

Step 4: Deploy

Option A: Self-host anywhere (Vercel, Netlify, etc.) — SDK handles auth + billing.

Option B: Publish on AI Pass catalog via Developer Dashboard </> button.

Revenue

50% commission on every API call through your app. No upfront costs, no infra to manage.

Links