Buy Credits
create_credit_checkout_sessionCreate a hosted Stripe Checkout URL for buying Uwear generation credits. Use only when the user explicitly asks to buy, add, top up, or purchase credits, or when they ask how to continue after insufficient credits. Do not call during photoshoot planning unless the user requested checkout. The tool only creates a payment link; the user must open and complete payment in Stripe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credits | No | Number of Uwear credits to purchase | |
| user_agent | No | Optional client user-agent recorded with checkout metadata | |
| return_cancel_url | No | Optional checkout cancellation URL; defaults to the Uwear credits page | |
| return_success_url | No | Optional checkout completion URL; defaults to the Uwear frontend |