Skip to content

Create checkout session​

POST
/v1/billing/checkout

Creates a Stripe checkout session for the authenticated user to purchase credits.

Authorizations​

BearerAuth

API key (Bearer key_...)

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
  
"credits": 0
}

Responses​

OK

application/json
JSON
{
  
"checkout_url": "string"
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI