> ## Documentation Index
> Fetch the complete documentation index at: https://www.tella.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Billing

> List the workspace's invoices, and create a Stripe Checkout link to upgrade the workspace or buy credits.

Your agent can't pay for anything itself. It creates a checkout link and gives it to you: you pay on Stripe's page without signing in to Tella, and the plan or credits apply to your workspace as soon as the payment goes through.

## create\_checkout\_link

> [!NOTE]
>
> ChatGPT's tool list does not include `create_checkout_link`. Claude and other clients that do not identify themselves as OpenAI-hosted clients keep this tool.

Create a Stripe Checkout link for a paid plan or a one-time credit package. Pass exactly one of `plan` and `creditPackage`. Only a workspace owner can buy, and the link expires after 24 hours.

A plan can only be bought for a workspace without a paid plan yet. To change an existing plan, or for an education discount, use the [billing page](https://www.tella.com/settings/billing).

**plan** `enum\<string\>`

`pro_monthly`, `pro_yearly`, `premium_monthly` or `premium_yearly`. Any paid plan exports in 4K and generates AI images and video; 60 FPS needs Premium, or Pro for videos up to 5 minutes. See [pricing](https://www.tella.com/pricing).

**creditPackage** `string`

A credit package id: the number of credits in thousands, such as `25k`, `100k` or `1000k`. An unknown id fails with every package on offer and its price.

Returns the checkout `url`, the `amountCents` and `currency` due now (before tax) and, for a plan, its billing `interval` and `seats` (one per workspace member), or for a credit package, the `credits` it adds.

Credits bought this way are the same one-time packages sold on the billing page. The monthly credit top-up isn't available here; change it on the billing page.

## list\_invoices

List the workspace's invoices, newest first, as the Stripe billing portal under **Settings** → **Plans & Billing** shows them. Only a workspace owner can list them. Drafts are left out, so a page can hold fewer invoices than `limit`.

**limit** `integer`

How many invoices to read, 1 to 100. Defaults to 20.

**cursor** `string`

`nextCursor` from the previous page. Omit for the first page.

Returns `invoices` and `nextCursor`, which is null on the last page. Each invoice has its `id`, `number`, `status` (`open`, `paid`, `void` or `uncollectible`), `currency`, `total`, `amountDue` and `amountPaid` in the currency's smallest unit (cents for USD), `createdAt`, `periodStart` and `periodEnd` (the span its line items bill for: a renewal covers the period ahead, though one carrying proration credits starts in the period before; only the first 10 line items count; null when it has none), `hostedInvoiceUrl` (Stripe's page to view or pay it) and `invoicePdfUrl` (the PDF). Anyone with one of those links can open it. A workspace on its free trial may have only a \$0 invoice for the trial.

If a `cursor` is no longer valid, the call fails; list again from the first page.

The same list is available over the REST API at `GET /v1/workspace/invoices`.


## Related topics

- [Add billing details to your invoice](https://www.tella.com/docs/help/billing/add-billing-details-to-invoice.md)
- [Switch between monthly and annual billing](https://www.tella.com/docs/help/billing/switch-billing-interval.md)
- [Understanding your Tella bill](https://www.tella.com/docs/help/billing/understanding-your-bill.md)
- [Apply a promo code](https://www.tella.com/docs/help/billing/use-a-promo-code.md)
- [AI assistant](https://www.tella.com/docs/help/support/ai-assistant.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.