Buy credits with a machine payment
buy_creditsBuy a credit pack with a machine payment (Stripe MPP: card through a shared payment token, or stablecoin). No account or sign-in needed. Packs: starter_80 = 80 credits for $9.99; pack_200 = 200 credits for $24.99; pack_550 = 550 credits for $59.99; pack_1500 = 1500 credits for $149.99. Pay by card (Stripe Link shared payment token, the default) or by stablecoin (USDC on Tempo): set method. The first call returns a payment challenge (JSON-RPC error -32042). Pay it and call again with the credential in _meta. With no API key, a new workspace is created and its API key is returned once: store it and send it as Authorization: Bearer . With an API key or a signed-in account, the credits are added to that workspace. The first card or Link purchase from each payer gets 50% bonus credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | Yes | Which pack to buy: starter_80 (80 credits, $9.99), pack_200 (200 credits, $24.99), pack_550 (550 credits, $59.99), pack_1500 (1500 credits, $149.99). | |
| method | No | How to pay: card (Stripe Link shared payment token, the default) or stablecoin (USDC on Tempo). | card |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | ||
| status | Yes | ||
| balance | Yes | ||
| serverUrl | Yes | ||
| bonusCredits | Yes | ||
| creditsAdded | Yes |