---
title: "One-time Checkout for a prepaid credit pack (card or stablecoin)"
method: POST
path: "/api/v1/billing/credits/checkout"
tags: ["Billing"]
---

# One-time Checkout for a prepaid credit pack (card or stablecoin)

`POST /api/v1/billing/credits/checkout`

## Request

- Base URL: `https://overwing.ai`
- URL: `https://overwing.ai/api/v1/billing/credits/checkout`
- Auth: HTTP bearer

Credits are spent after the day's plan allowance is used and never expire. Packs: small (10,000 for $19), medium (100,000 for $149), large (1,000,000 for $999). Evaluate responses carry X-Credits-Remaining and X-Quota-Source: credits when credits are used.

## Request body

- object
  - `pack` 'small' | 'medium' | 'large', required
  - `success_url` string, uri
  - `cancel_url` string, uri

## Response `201`

Checkout session

- object
  - `url` string, uri
  - `pack` string
  - `credits` integer
  - `price_usd` number
  - `expires_in_seconds` integer

## Other responses

- `400`: Invalid pack or URLs
- `401`: Missing or invalid API key
- `503`: Billing not enabled

---

[API](https://skmtc.dev/overwing/apis/overwing-api.md) · [All operations](https://skmtc.dev/overwing/apis/overwing-api/llms.txt) · [OpenAPI document](https://skmtc.dev/overwing/apis/overwing-api/revisions/ff1282d31438?raw)
