> ## 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 Credit Packages

> This endpoint retrieves the available credit packages for purchase.

## GET /credits/packages

This endpoint returns a list of all available credit packages that can be purchased. This is a public endpoint and does not require authentication.

### Response

<ResponseField name="packages" type="array">
  An array of credit package objects.

  <Expandable title="package properties">
    <ResponseField name="id" type="string">
      The unique identifier for the package.
    </ResponseField>

    <ResponseField name="name" type="string">
      The name of the package.
    </ResponseField>

    <ResponseField name="credits" type="number">
      The number of credits included in the package.
    </ResponseField>

    <ResponseField name="priceCents" type="number">
      The price of the package in cents (e.g., 999 = \$9.99).
    </ResponseField>

    <ResponseField name="packageId" type="string">
      Internal package identifier used for checkout.
    </ResponseField>
  </Expandable>
</ResponseField>

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

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.llmgenerator.com/api/v1/credits/packages');
  const data = await response.json();
  ```

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

  response = requests.get('https://api.llmgenerator.com/api/v1/credits/packages')
  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "packages": [
      {
        "id": "pkg_starter",
        "name": "Starter Pack",
        "credits": 100,
        "priceCents": 499,
        "packageId": "starter"
      },
      {
        "id": "pkg_pro",
        "name": "Pro Pack",
        "credits": 500,
        "priceCents": 1999,
        "packageId": "pro"
      },
      {
        "id": "pkg_enterprise",
        "name": "Enterprise Pack",
        "credits": 2000,
        "priceCents": 4999,
        "packageId": "enterprise"
      }
    ]
  }
  ```
</ResponseExample>
