All endpoints return JSON.
Public API v1
AI Pricing Hub Developer Platform
Use the public REST API to query providers, models, rankings, history, market metrics, industry intelligence, and changelog events from generated AI Pricing Hub datasets. No authentication is required for v1.
Overview
Static data, clean REST endpoints
API keys are not required initially.
Responses are static or generated from static JSON assets.
Breaking changes ship under a future version path.
Quick start
Get pricing data in one request
No API key is required. This request returns generated model records with provider, model, status, context, source links, and USD per 1M token pricing fields.
curl https://aipricinghub.com/api/v1/models?provider=anthropic&status=stableHTTP 200 JSON with the standard envelope: api_version, generated_at, endpoint, links, data, and meta. Use Swagger or OpenAPI below to explore the full endpoint set.
Endpoints
REST resources
| Endpoint | Returns |
|---|---|
| /api/v1/providers | Provider status and model counts |
| /api/v1/providers/anthropic | Provider detail |
| /api/v1/models?provider=anthropic | Filtered model list |
| /api/v1/models/anthropic-claude-3-7-sonnet-20250219 | Model detail |
| /api/v1/rankings?type=cheapest | Rankings |
| /api/v1/history/anthropic-claude-3-7-sonnet-20250219 | Historical pricing |
| /api/v1/market | Market metrics |
| /api/v1/industry | Industry intelligence |
| /api/v1/changelog | Recent changes |
| /api/v1/freshness | Freshness and confidence metadata |
Examples
Copy additional requests
const res = await fetch('https://aipricinghub.com/api/v1/market');
const market = await res.json();import requests
models = requests.get('https://aipricinghub.com/api/v1/models', params={'modality': 'vision'}).json()Invoke-RestMethod 'https://aipricinghub.com/api/v1/providers/anthropic'Schemas
Consistent response envelope
Successful documented endpoint responses include api_version, generated_at, endpoint, links, data, and meta. Endpoint-specific fields are documented in the OpenAPI specification.
Continue
Pick up where you left off
Public API
Build with AI Pricing Hub data
Use static JSON endpoints for providers, models, rankings, history, market metrics, and changelog events.
Editorial information
Reviewed by AI Pricing Hub Editorial
2026-08-04
Methodology explains collection, validation, limitations, and update cadence.