Keys & Billing

Start a card subscription for a Pro or Enterprise key (no auth required)

Creates a Stripe Checkout session for a monthly subscription — Pro $29/mo (10,000 requests/day, 1,000 credits/mo) or Enterprise $99/mo (100,000 requests/day, 5,000 credits/mo). Returns a hosted checkout URL; after payment the key is retrieved once via GET /v1/keys/retrieve. Pass keyHash (from POST /v1/keys/lookup) to upgrade an existing key in place — email and app name are then optional and carried over. Response envelope note: standalone endpoint — flat {success, url}.

post/v1/keys/checkout

Request

  • Base URL: https://api.insumermodel.com
  • URL: https://api.insumermodel.com/v1/keys/checkout
  • Auth: none required

Request body

tier'pro' | 'enterprise' required
emailstring email

Required unless upgrading via keyHash.

appNamestring

Required unless upgrading via keyHash.

keyHashstring

64-hex identifier of an existing key to upgrade (returned by /v1/keys/lookup).

Response

Hosted checkout session created

successboolean
urlstring

Stripe Checkout URL to complete the subscription.

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.