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 Go client has no endpoints resource, so call them with net/http.
| 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 |
req, _ := http.NewRequest("GET",
"https://opendunes.com/v1/models/anthropic/claude-sonnet-5/endpoints", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("OPENDUNES_API_KEY"))
resp, err := http.DefaultClient.Do(req)
// resp body: { "data": { "id", "name", "architecture", "endpoints": [
// { "provider_name", "context_length", "pricing": { "prompt", "completion", … }, "uptime_last_30m", … } ] } }
// pricing is in DA per unit of the model's meterA model that is not on sale is a 404.
req, _ := http.NewRequest("GET", "https://opendunes.com/v1/endpoints/zdr", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("OPENDUNES_API_KEY"))
resp, err := http.DefaultClient.Do(req)
// resp body: { "data": [ … one endpoint object per endpoint that keeps nothing it is sent … ] }A guardrail with enforce_zdr_<lab> routes that lab's requests to these endpoints only.