PlanGate
Type to search every docs page
↑ ↓ to move↵ to openesc to close
DocsSign in
No backend · your provider key · OpenAI-compatible

Sell AI subscriptions without a backend, never at a loss.

Offer your users a free plan without a backend, capped at what you decide.

No backend to write, host or keep running: your app calls PlanGate directly. An app can't ship a provider key or check its own purchases, so PlanGate does both: your key stays with us*, never in the app. Your users sign in, subscribe and call an OpenAI-compatible API, each answer billed at the model's real price against their 5-hour and weekly budgets.

* Encrypted (AES-256-GCM) with a key kept outside the database, decrypted only to call your provider. How we protect it

Set what the free plan may cost you a month and the least a served user gets a day. Each day PlanGate spreads what is left of the budget over the days left and serves as many users as it can pay for. Once the day's places are taken, the API answers 402 with the link to your paid plans.

30 days free, then $9.90 a month flat.

Try a plan
$20.00
Most AI one subscriber can use in a month$17.50
Payment fees at most$2.50
Your margin if they max out every week$0.00
AI budget per 5 hours$0.70
AI budget per week$3.50

Even a subscriber who spends every budget costs you no more than they pay. Most use far less.

Checked on every plan5 × weekly budget ≤ price × 0.9 − $0.50

With Polar's cut; a store price is checked against that store's. The server checks it, then the database checks it again.

Try a budget
$30.00
$0.05
Free users served a day, up to20
Budget of a day$1.00
Most the month can cost you$30.00
Worked out every dayplaces × minimum ≤ budget left ÷ days left

A quiet day carries its rest over to the next ones. Your subscribers never take a free place.

Your key from
  • OpenAI
  • Anthropic
  • Gemini
  • DeepSeek
  • Mistral
  • xAI
  • Groq
  • OpenRouter
How it works

From provider key to your first plan in four steps

  1. Create an app, paste your key

    OpenAI, Anthropic, Gemini, DeepSeek, Mistral, xAI, Groq or OpenRouter. Each app has its own key.

  2. Pick the models you sell

    PlanGate lists what your key can call, with the price it bills for each, from public price lists.

  3. Connect Polar or a store, create plans

    A name and a monthly price. PlanGate fills in the budgets and creates the web checkout; add a store product to sell in your apps.

  4. One call from your app. No SDK, no backend.

    Your users sign in with PlanGate in two clicks, or with your app's own sign-in. Then any OpenAI client works with their token, metered per answer.

// The Google account of the phone
val idToken = GoogleIdTokenCredential
    .createFrom(result.credential.data).idToken

// One call signs the user in
val body = JSONObject().put("token", idToken)
    .toString().toRequestBody(JSON)
val session = JSONObject(http.newCall(
    Request.Builder().post(body)
        .url(API + "/apps/my-agent/sign-in")
        .build()
).execute().body!!.string())

// Then any OpenAI client
val ai = OpenAIOkHttpClient.builder()
    .baseUrl(API + "/my-agent/v1")
    .apiKey(session.getString("access_token"))
    .build()
https://api.plangate.dev/my-agent/v1
Sign-in

Simple or native: your pick

One per app. Both work on the web, desktop, Android and iOS, with no password to store, and a user keeps their plan on every device.

Signing users in →
Payment channels

Your subscribers pay where your app lives

Sell the same plan on the web and in each store: the subscriber is the same user everywhere.

  • Web, any device

    Polar

    A checkout link. Polar is the merchant of record and pays out to your account.

    Channel's cut10% + $0.50
  • Android

    Google Play

    Play Billing in your app. PlanGate verifies the purchase token and acknowledges it.

    Channel's cut15%
  • iPhone, iPad and Mac

    App Store

    StoreKit 2 in your app. PlanGate reads the subscription from Apple and follows its renewals.

    Channel's cut30% at most
  • Windows desktop

    Microsoft Store

    The Windows Store APIs. PlanGate reads the subscription from Microsoft.

    Channel's cut15%

Each store price is checked against that store's cut, so no channel can sell a plan at a loss. Selling in app stores

$9.90 a month, however much you sell.

One price for PlanGate, whatever the number of apps, subscribers or requests. No cut of your sales, no per-token fee: your subscribers pay you through Polar or the app stores, and the AI runs on your own provider key.

Start your 30 free daysNo card needed for the trial.
FreeDays 1 to 30
$9.90 / monthThen billed monthly
Your PlanGate bill at different sizes
You sell to PlanGate bill
12 subscribers1 app $9.90
100 subscribers3 apps $9.90
500 subscribers12 apps $9.90
❌🕸️