---
title: "Get a Stripe Checkout URL that tops up this key’s balance"
method: POST
path: "/credits/checkout"
---

# Get a Stripe Checkout URL that tops up this key’s balance

`POST /credits/checkout`

## Request

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

Creates a one-time Stripe Checkout Session for a credit pack, bound to the calling live key’s account. When the payment completes the credits land on that balance; poll GET /keys/me. This is what a 402 `topUp.checkoutEndpoint` points at. Free, consumes no quota.

## Request body

- object
  - `pack` '1000' | '5000' | '20000', required

## Response `201`

Created — { checkoutUrl, sessionId, pack, credits, expiresAt }

## Other responses

- `400`: Unknown or unavailable pack
- `403`: Test keys cannot buy credits

---

[API](https://skmtc.dev/deepvalues/apis/deep-values-api.md) · [All operations](https://skmtc.dev/deepvalues/apis/deep-values-api/llms.txt) · [OpenAPI document](https://skmtc.dev/deepvalues/apis/deep-values-api/revisions/3a5c24b7142f?raw)
