The providers serving one model, each with its own price in DA — and the endpoints that keep no data.
Two free routes, on an API key. The openai SDK has no endpoints resource, so call them with httpx.
| Path | Answers |
|---|---|
GET /v1/models/{lab}/{model}/endpoints | the providers serving one model, each with its price |
GET /v1/endpoints/zdr | every endpoint that keeps no data |
import os
import httpx
headers = {"Authorization": f"Bearer {os.environ['OPENDUNES_API_KEY']}"}
model = httpx.get(
"https://opendunes.com/v1/models/anthropic/claude-sonnet-5/endpoints",
headers=headers,
).json()["data"]
for e in model["endpoints"]:
print(e["provider_name"], e["pricing"]["prompt"], e["pricing"]["completion"], e["uptime_last_30m"])
# pricing is in DA per unit of the model's meterA model that is not on sale is a 404.
zdr = httpx.get("https://opendunes.com/v1/endpoints/zdr", headers=headers).json()["data"]
# one endpoint object per endpoint that keeps nothing it is sent, across every model on saleA guardrail with enforce_zdr_<lab> routes that lab's requests to these endpoints only.