v1

latestOpenAPI 3.0.32026-08-0421040.6 KB
Billing

Create a Stripe checkout session to purchase a credit package. Returns a Stripe URL to redirect the user to for payment. Credits are added to your balance automatically after successful payment via webhook.

post/v1/billing/purchase

Request body

package_id'credits_100' | 'credits_500' | 'credits_2000' | 'credits_10000' required

Credit package ID to purchase. See GET /v1/billing for available packages.

Response

Default Response

session_idstring required

Stripe checkout session ID

urlstring required

Stripe checkout URL — redirect the user here to complete payment