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

# Get Subscription Plans

> Get a list of all available subscription plans with pricing and features.

## Overview

Returns all available subscription plans. This endpoint is **public** and doesn't require authentication, making it ideal for displaying pricing information in your application.

## Available Plans

| Plan         | Monthly Credits | Price (USD)   |
| ------------ | --------------- | ------------- |
| Starter      | 500             | \$4.99/month  |
| Professional | 3,000           | \$12.99/month |
| Business     | 10,000          | \$29.99/month |
| Agency       | 30,000          | \$69.99/month |

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.llmgenerator.com/api/v1/subscriptions/plans
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.llmgenerator.com/api/v1/subscriptions/plans');
  const data = await response.json();
  console.log(data.plans);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get('https://api.llmgenerator.com/api/v1/subscriptions/plans')
  data = response.json()
  print(data['plans'])
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "plans": [
      {
        "id": "starter",
        "name": "Starter",
        "monthlyCredits": 500,
        "price": 4.99,
        "features": [
          "500 credits/month",
          "Email support",
          "Basic analytics"
        ]
      },
      {
        "id": "professional",
        "name": "Professional",
        "monthlyCredits": 3000,
        "price": 12.99,
        "features": [
          "3,000 credits/month",
          "Priority support",
          "Advanced analytics",
          "API access"
        ]
      },
      {
        "id": "business",
        "name": "Business",
        "monthlyCredits": 10000,
        "price": 29.99,
        "features": [
          "10,000 credits/month",
          "Dedicated support",
          "Custom integrations",
          "Team management"
        ]
      },
      {
        "id": "agency",
        "name": "Agency",
        "monthlyCredits": 30000,
        "price": 69.99,
        "features": [
          "30,000 credits/month",
          "White-label options",
          "Priority processing",
          "Custom solutions"
        ]
      }
    ]
  }
  ```
</ResponseExample>

## Response Fields

<ResponseField name="plans" type="array">
  Array of subscription plan objects.

  <Expandable title="Plan object properties">
    <ResponseField name="id" type="string">
      Unique identifier for the plan. Use this when creating a checkout session.
    </ResponseField>

    <ResponseField name="name" type="string">
      Human-readable name of the plan.
    </ResponseField>

    <ResponseField name="monthlyCredits" type="integer">
      Number of credits included per month.
    </ResponseField>

    <ResponseField name="price" type="number">
      Monthly price in USD.
    </ResponseField>

    <ResponseField name="features" type="array">
      List of features included in this plan.
    </ResponseField>
  </Expandable>
</ResponseField>

## Use Cases

* **Pricing pages**: Display available plans to potential customers
* **Plan comparison**: Help users choose the right plan
* **Upgrade prompts**: Show available upgrades to current subscribers
