Public API
Every price on this site is available as a free, public JSON API — no API key, no signup. Built for anyone who wants live AI pricing data in their own app or script.
Base URL
https://aipricemetrics.onrender.comFull interactive docs (try requests right in the browser): https://aipricemetrics.onrender.com/docs. Raw OpenAPI schema: /openapi.json.
Endpoints
GET /api/v1/modelsList models with current pricing. Filter with ?modality= or ?provider=.GET /api/v1/models/{slug}A single model, by slug.GET /api/v1/models/{slug}/historyFull price history for a model, newest first.GET /api/v1/providersList all providers.GET /api/v1/providers/{slug}A single provider and all of its current models.GET /api/v1/price-changesRecent price-change events. ?days= and ?limit= narrow the window.POST /api/v1/calculator/estimateEstimate cost for a token volume against a model.Example
curl https://aipricemetrics.onrender.com/api/v1/models?modality=text&limit=5Limits & access
Rate limit: 60 requests per minute per IP, applied to every endpoint.
CORS is open (Access-Control-Allow-Origin: *) — this API is meant to be called directly from other people's browser-side apps, not just servers.
This is a free-tier hosted service maintained alongside the rest of the site — no uptime SLA. If you're building something that depends on it, consider polling /price-changes instead of hammering the full catalog on every request.