Skip to main content

GET /credits/packages

This endpoint returns a list of all available credit packages that can be purchased. This is a public endpoint.

Response

packages
array
An array of credit package objects.
id
string
The unique identifier for the package.
name
string
The name of the package.
credits
number
The number of credits included in the package.
price
number
The price of the package in USD.
curl -X GET https://api.llmgenerator.com/api/v1/credits/packages
{
  "packages": [
    {
      "id": "pkg_xxxxxxxx",
      "name": "Starter Pack",
      "credits": 100,
      "price": 1.99
    },
    {
      "id": "pkg_yyyyyyyy",
      "name": "Pro Pack",
      "credits": 500,
      "price": 7.99
    }
  ]
}