Create billing checkout session
Create Checkout Session
Create a payment checkout session to purchase credits
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
API key for authentication (sk-xxx format)
Body
application/json