---
title: "Create a Stripe checkout session to buy credits"
method: POST
path: "/credits/checkout"
---

# Create a Stripe checkout session to buy credits

`POST /credits/checkout`

Body: { credits } for a custom $1/credit amount, or { package_id } to buy a discounted bulk bundle (see GET /pricing). Optional { save_payment_method, ui_mode, success_path }.

## Response `200`

Checkout session

---

[API](https://skmtc.dev/once/apis/once-rest-api.md) · [All operations](https://skmtc.dev/once/apis/once-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/once/once-rest-api/revisions/6b7f882e04ff/schema)
