Skip to main content
POST
Create billing checkout session
Initiate a checkout session to purchase credits using your preferred payment method. Returns a checkout URL for the payment flow.
  • Amount is specified in USD (whole dollars)
  • Success and cancel URLs redirect users after payment completion or cancellation
  • Checkout sessions expire after 24 hours if not completed
  • Credits are added to your account immediately upon successful payment

List Checkouts

View all checkout sessions and their status

Get Usage Statistics

Monitor credit usage and balance

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Body

application/json
mode
enum<string>
Available options:
payment,
subscription
Example:

"payment"

plan_id
string
Example:

"plan-basic"

amount
number
Example:

100

Response

200 - application/json

Checkout URL

success
boolean
Example:

true

data
object