---
title: "A Stripe Checkout link to buy an AI credit pack (one-time payment)"
method: POST
path: "/api/ai/credits/checkout"
---

# A Stripe Checkout link to buy an AI credit pack (one-time payment)

`POST /api/ai/credits/checkout`

## Request

- Base URL: `https://postwire.io`
- URL: `https://postwire.io/api/ai/credits/checkout`
- Auth: HTTP bearer

Packs: "5" = about 40 AI drafts for $5, "20" = about 190 for $20. Used after the month's AI drafts; they do not expire. Nothing is charged until the person pays on the Stripe page. A refund or dispute takes back what is left of the pack.

## Request body

- object
  - `pack` '5' | '20', required

## Response `200`

{ url } of the Stripe Checkout page

## Other responses

- `403`: internal_account (internal accounts are not billed for AI)
- `503`: ai_credits_unavailable: packs are not on sale on this server yet

---

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