Skip to main content
Retrieve all providers currently available through ARouter, including their names and supported model counts.

Endpoint

GET /api/v1/providers

Example Request

curl https://api.arouter.ai/api/v1/providers \
  -H "Authorization: Bearer lr_live_xxxx"

Example Response

{
  "data": [
    {
      "id": "OpenAI",
      "name": "OpenAI",
      "model_count": 24,
      "is_byok_supported": true
    },
    {
      "id": "Anthropic",
      "name": "Anthropic",
      "model_count": 12,
      "is_byok_supported": true
    },
    {
      "id": "Google",
      "name": "Google",
      "model_count": 16,
      "is_byok_supported": true
    },
    {
      "id": "Meta",
      "name": "Meta",
      "model_count": 18,
      "is_byok_supported": false
    }
  ]
}

Response Fields

FieldTypeDescription
dataarrayList of provider objects
data[].idstringProvider identifier used in routing (e.g. in provider.order)
data[].namestringHuman-readable provider name
data[].model_countintegerNumber of models available from this provider
data[].is_byok_supportedbooleanWhether BYOK is supported for this provider

Notes

  • Provider IDs are used in provider.order, provider.only, and provider.ignore fields in chat completion requests
  • See Provider Routing for how to use provider IDs in requests
  • See BYOK for bring-your-own-key configuration