---
title: "Buy credits"
method: POST
path: "/v2/billing/credits"
tags: ["billing"]
---

# Buy credits

`POST /v2/billing/credits`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/billing/credits`
- Auth: HTTP bearer

Purchase prepaid credits and stream payment status.

## Headers

- `Idempotency-Key` string, required: Unique key for this intended purchase; reuse it when retrying the same request.

## Request body

- BuyCreditsRequest: A prepaid credit purchase.
  - `amount` union, required: Credits to purchase, in dollars.
    - number
    - string, decimal

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

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