---
title: "POST /api/billing/ai/top-ups"
method: POST
path: "/api/billing/ai/top-ups"
tags: ["AITopUp"]
---

# POST /api/billing/ai/top-ups

`POST /api/billing/ai/top-ups`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/billing/ai/top-ups`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Headers

- `Idempotency-Key` string

## Request body

- PurchaseAITopUpRequestDto
  - `size` 'Small' | 'Medium' | 'Large', required

## Response `200`

OK

- AITopUpPurchaseResultDto
  - `credits` integer, required
  - `amountCents` integer, required
  - `currency` string, required
  - `paymentStatus` string, required

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
