---
title: "POST /usage/v2/upgrade-to-payg/"
method: POST
path: "/usage/v2/upgrade-to-payg/"
tags: ["usage"]
---

# POST /usage/v2/upgrade-to-payg/

`POST /usage/v2/upgrade-to-payg/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/usage/v2/upgrade-to-payg/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a Stripe Checkout session in setup mode for card collection.

## Request body

- UsageEmptyRequest

## Response `200`

OK

- UpgradeToPaygPostResponse
  - `status` boolean, required
  - `result` UpgradeToPaygPostResult, required
    - `checkout_url` string, uri, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
