List every provider that serves models, with its policies.
GET /v1/providers lists every provider, with its policy pages and where it is based. It is free and takes an API key. The openai SDK has no providers resource, so call it with httpx.
import os
import httpx
resp = httpx.get(
"https://opendunes.com/v1/providers",
headers={"Authorization": f"Bearer {os.environ['OPENDUNES_API_KEY']}"},
)
for p in resp.json()["data"]:
print(p["slug"], p["name"], p["headquarters"])
# each: name, slug, privacy_policy_url, terms_of_service_url, status_page_url, headquarters, datacentersslug is the name routing takes: provider.only, provider.order, and a guardrail's allowed_providers.