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 fetch.
| 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 |
const headers = { Authorization: `Bearer ${process.env.OPENDUNES_API_KEY}` };
const res = await fetch(
"https://opendunes.com/v1/models/anthropic/claude-sonnet-5/endpoints",
{ headers },
);
const { data: model } = await res.json();
for (const e of model.endpoints) {
console.log(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.
const zdr = await fetch("https://opendunes.com/v1/endpoints/zdr", { headers });
const { data } = await zdr.json();
// 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.