> ## 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.

# Listar pacotes de créditos

> Este endpoint retorna os pacotes de créditos disponíveis para compra.

## GET /credits/packages

Este endpoint retorna todos os pacotes de créditos disponíveis. É público e não exige autenticação.

### Resposta

<ResponseField name="packages" type="array">
  Lista de objetos de pacote.

  <Expandable title="Propriedades do pacote">
    <ResponseField name="id" type="string">
      Identificador único do pacote.
    </ResponseField>

    <ResponseField name="name" type="string">
      Nome do pacote.
    </ResponseField>

    <ResponseField name="credits" type="number">
      Quantidade de créditos incluídos.
    </ResponseField>

    <ResponseField name="priceCents" type="number">
      Preço em centavos (ex.: 999 = US\$ 9,99).
    </ResponseField>

    <ResponseField name="packageId" type="string">
      Identificador interno usado no 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 Sucesso (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>
