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

# Plans

> List the plans a workspace can buy, and give a person the link to buy or change one.

Generating needs an active Argil plan. Without one, `POST /v2/generations` and agent sessions answer `403 plan_required`. The API never pays: it gives you a link, and a person pays or confirms on it.

## List the plans

```bash theme={null}
curl https://api.argil.ai/v2/plans -H "Authorization: Bearer $ARGIL_API_KEY"
```

```json theme={null}
{
  "object": "list",
  "data": [
    {
      "object": "plan",
      "name": "Pro 2000",
      "family": "pro",
      "monthly_credits": 2000,
      "prices": [
        { "id": "price_1Q2w3E4r5T6y7U8iMonth", "interval": "month", "amount": 5000, "currency": "usd", "current": true },
        { "id": "price_1Q2w3E4r5T6y7U8iYear", "interval": "year", "amount": 48000, "currency": "usd", "current": false }
      ]
    }
  ]
}
```

These are the plans Argil's plans page offers this workspace, one per number of monthly credits: the `pro` family, or, for a workspace on a family Argil no longer sells on its own, that family. Enterprise plans are sold by Argil's team. `amount` is in cents, and `null` when the price is not known: the page shows it. `current` marks the plan and interval the workspace is on: there is nothing to buy there.

## Get the link

```bash theme={null}
curl https://api.argil.ai/v2/checkout \
  -H "Authorization: Bearer $ARGIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"price": "price_1Q2w3E4r5T6y7U8iMonth"}'
```

What the link does depends on the workspace:

| `kind` | When | The person |
| - | - | - |
| `checkout` | The workspace has no plan | Pays on a Stripe page, signed in to Argil or not. The link works for one hour (`expires_at`), until a newer link for the workspace replaces it. There is no trial. |
| `plan_change` | The workspace has a plan | Confirms the change on Argil's plans page, signed in, which opens on this workspace. An upgrade is charged now, prorated; a downgrade starts at the end of the period. `expires_at` is `null`. |

```json theme={null}
{
  "object": "checkout",
  "kind": "checkout",
  "url": "https://checkout.stripe.com/c/pay/cs_live_a1B2c3D4e5F6g7H8",
  "expires_at": "2026-11-23T14:00:00.000Z"
}
```

After paying, the person lands on an Argil page that tells them to go back to you. The plan is active once Stripe confirms the payment, within a minute: then call again.

Only an admin of the workspace gets a link: anyone else gets `403 admin_required`. A price that is not in `GET /v2/plans`, or the plan the workspace is already on, is `400 parameter_invalid` on `/price`.

## Over MCP

The `list_plans` and `create_checkout` tools do the same. When a generation is refused for the plan, the assistant shows the plans, lets the user choose, and gives them the link: it never asks for card details.

In clients that show Argil's [cards](https://docs.argil.ai/v2/mcp/how-it-works.md#cards) (claude.ai, for example), the plans show as Argil's plans page does: the user picks a billing cycle and a number of credits, and the payment page opens. Nothing is charged in the card.


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