cURL
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 } ] }
Returns all models for a specific provider by slug.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Provider slug (e.g. openai, claude)
List of models
Show child attributes