Skip to main content

AI Pricing Data API

Structured pricing data for 133+ AI models across 16 providers. Build cost comparison tools, internal dashboards, and procurement workflows with clean, consistent data delivered via REST API.

Get Started Free

Choose Your Plan

Free

$0

100 requests/day

  • 100 API requests per day
  • 6 REST endpoints
  • x-api-key authentication

Pro

$9/mo

5,000 requests/day

  • 5,000 API requests per day
  • All Free features
  • Email support
Most Popular

Business

$29/mo

50,000 requests/day

  • 50,000 API requests per day
  • All Pro features
  • Priority support

Enterprise

$99/mo

Unlimited

  • Unlimited API requests
  • All Business features
  • Dedicated support

API access is not yet available. Join the newsletter for launch updates.

Quick Start

Fetch structured pricing data for 133+ AI models with a single API call.

Request

curl https://apicents.com/api/v1/models \
  -H "x-api-key: YOUR_API_KEY"

Response

{
  "data": [
    {
      "id": "claude-sonnet-4",
      "name": "Claude Sonnet 4",
      "slug": "claude-sonnet-4",
      "providerId": "anthropic",
      "pricing": {
        "inputPerMillion": 3.00,
        "outputPerMillion": 15.00
      }
    }
  ],
  "meta": { "request_id": "...", "timestamp": "...", "api_version": "v1" },
  "pagination": { "total": 122, "limit": 50, "offset": 0 }
}

API Endpoints

Six RESTful endpoints cover models, providers, comparisons, and use cases. All endpoints return JSON with consistent pagination and metadata.

MethodEndpointDescription
GET/api/v1/modelsList all models with optional filtering
GET/api/v1/models/:slugGet a single model by slug
GET/api/v1/providersList all providers
GET/api/v1/providers/:slugGet a single provider with optional models
GET/api/v1/compareCompare models by cost
GET/api/v1/use-casesList use case templates

Full documentation with request/response examples available at /docs/api.

Frequently Asked Questions

What data does the API provide?
Pricing, features, and metadata for 133+ AI models across 16 providers. Every model includes input and output token pricing, context window size, and provider details.
How often is pricing data updated?
Data is refreshed regularly via automated scrapers. Most prices update within 24 hours of provider changes.
What are the rate limits?
Free: 100 requests/day. Pro: 5,000 requests/day. Business: 50,000 requests/day. Enterprise: unlimited.
How do I cancel?
Paid subscribers can manage their subscription through the billing portal. Navigate to the manage page or check your welcome email for a direct link.
Is there an OpenAPI spec?
Yes! Available at /openapi.json for machine consumption. Use it to auto-generate client SDKs in any language.

Ready to integrate AI pricing data?

Get Started Free