---
title: "Purchase credit bundle"
method: POST
path: "/api/v1/billing/credits"
---

# Purchase credit bundle

`POST /api/v1/billing/credits`

## Request

- Base URL: `https://api.virga.dev`
- URL: `https://api.virga.dev/api/v1/billing/credits`
- Auth: API key in header `X-API-Key`

Initiates a checkout session for a credit bundle purchase. Requires billing activated.

## Request body

- CreditBundle
  - `bundle` '500' | '2000' | '10000', required: 500 credits = $5, 2000 credits = $18, 10000 credits = $75

## Response `200`

Checkout URL

- object
  - `checkoutUrl` string, uri

## Other responses

- `400`: Invalid request parameters
- `401`: Missing or invalid API key
- `403`: Account suspended, quarantined, or key revoked

---

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