How to list available models from the API

Get the current list of enabled model IDs programmatically.

Call the models endpoint

The models endpoint returns every enabled model ID. Use it to fill a model picker or validate IDs before sending requests.

Example

curl https://tokenrex.ai/api/public/v1/models -H "Authorization: Bearer YOUR_TOKENREX_KEY"
Get API keyCost calculatorDocs

Questions

Do I need a separate key for each provider?
No. One TokenRex API key works for every enabled model; change only the model ID.

Related