Sell our courses inside your product.

Show the catalog, send buyers to our hosted Stripe checkout, and earn commission on every sale — attribution is written into the order, and payment, delivery, refunds and support all stay with BayAIU.

  1. 01

    Get your API key

    Sign in at bayaiu.ai/affiliate → the “BayAIU Partner API” panel → Generate. Shown once — store it safely.

    Open partner center →
  2. 02

    Hand the install doc to your AI assistant

    Copy the one-shot integration doc below and paste it into Claude Code / Cursor inside YOUR product's repo. It implements the catalog, checkout and compliance for you.

  3. 03

    Earn commission on every sale

    There is no standard rate — yours is agreed with us when you join, and your integration reads it from the API. Commission freezes 45 days, then settles monthly, $50 minimum.

One-click install

One doc. Your AI assistant does the rest.

The install doc below is written FOR AI coding assistants: API spec, security rules, the three integration tasks, error mapping, compliance copy, and a self-test checklist. Copy it into Claude Code or Cursor in your repo and say: “Install this.”

Download .md

API reference

Base URL: https://bayaiu.ai/api/v1 · Auth: Authorization: Bearer bk_live_…

  • GET /courses

    Sellable catalog with prices, dates, seats left, and your agreed per-course commission & student discount.

  • POST /checkout-sessions

    The core call: pass a course slug + the buyer's email, get a Stripe-hosted checkout URL with your attribution written into the order (no cookies).

  • GET /commissions

    Your commission ledger: pending (45-day freeze) → approved → paid; refunds auto-reverse.

  • GET /me

    Your own terms: the commission rate agreed for your account, and your attributed sales to date.

Full request/response examples live in the install doc above. Webhooks, orders and monthly statements ship in v1.

Ground rules

  • Prices are set by BayAIU — your integration displays what the API returns.
  • Commissions freeze for 45 days (covering the refund window), then settle monthly ($50 minimum). Refunds reverse automatically.
  • Disclose the partnership (FTC) and never use income-promise language — violations end the partnership.
  • Student data belongs to BayAIU; the API never returns full buyer PII.

Questions? contact@bayaiu.ai