AI Pricing Hub Public API v1

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

Base URLhttps://aipricinghub.com/api/v1

All endpoints return JSON.

AuthenticationNone

API keys are not required initially.

Rate limitsCDN fair use

Responses are static or generated from static JSON assets.

Versionv1

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
curl https://aipricinghub.com/api/v1/models?provider=anthropic&status=stable
Response

HTTP 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

EndpointReturns
/api/v1/providersProvider status and model counts
/api/v1/providers/anthropicProvider detail
/api/v1/models?provider=anthropicFiltered model list
/api/v1/models/anthropic-claude-3-7-sonnet-20250219Model detail
/api/v1/rankings?type=cheapestRankings
/api/v1/history/anthropic-claude-3-7-sonnet-20250219Historical pricing
/api/v1/marketMarket metrics
/api/v1/industryIndustry intelligence
/api/v1/changelogRecent changes
/api/v1/freshnessFreshness and confidence metadata

Examples

Copy additional requests

JavaScript
const res = await fetch('https://aipricinghub.com/api/v1/market');
const market = await res.json();
Python
import requests
models = requests.get('https://aipricinghub.com/api/v1/models', params={'modality': 'vision'}).json()
PowerShell
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.

Public API

Build with AI Pricing Hub data

Use static JSON endpoints for providers, models, rankings, history, market metrics, and changelog events.

Newsletter

Get AI pricing changes in your inbox

Monthly pricing moves, new model launches, and practical cost notes. Provider integration is not enabled yet.

Editorial information

Reviewed by AI Pricing Hub Editorial

Last updated

2026-08-04

Methodology

Methodology explains collection, validation, limitations, and update cadence.