Skip to main content
GET
/
llm-provider
/
{slug}
/
models
Get Provider Models
curl --request GET \
  --url https://api.promptmetrics.dev/llm-provider/{slug}/models \
  --header 'Authorization: Bearer <token>'
{
  "responseData": [
    {
      "_id": "<string>",
      "name": "<string>",
      "model_id": "<string>",
      "context_length": 123,
      "input_cost": 123,
      "output_cost": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

slug
string
required

Provider slug (e.g. openai, claude)

Response

200 - application/json

List of models

responseData
object[]