GET
/
models
Retrieve available LLM models
curl --request GET \
  --url https://api.paywalls.ai/v1/models \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "gpt-3.5-turbo",
      "object": "model",
      "name": "gpt-3.5-turbo",
      "display_name": "GPT-3.5 Turbo",
      "description": "A powerful language model for various tasks.",
      "pricing": {
        "prompt": "0.5",
        "completion": "1",
        "request": "0.01"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Paywall-User
string

Optional user identifier provided by the developer. Can be used instead of the user property in the request body to associate the API call with a specific end user.

Response

200 - application/json

successful operation

data
object[]
required

A list of available models.