Model Cost Comparison Cron API

The Cron API from Model Cost Comparison — 1 operation(s) for cron.

Operations 1

GET /api/v1/cron/trigger-ai-pricing-refresh Trigger weekly pricing refresh workflow #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/modelcostcomparison-com:modelcostcomparison-com-cron-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

modelcostcomparison-com-cron-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Model Cost Comparison Cron API
  version: 1.0.0
  description: 'Public machine-readable surfaces for Model Cost Comparison (61 models, 11 providers).

    Developer portal: https://modelcostcomparison.com/developers


    ## Versioning

    Stable REST operations use major-version URL paths beginning with /api/v1. Breaking changes ship under a new major path (/api/v2). Additive, non-breaking changes may appear on the current major without a path bump.


    ## Deprecation

    Deprecated operations return Deprecation: true (RFC 9745) and a Link rel="successor-version" header pointing at the replacement. When a removal date is set, responses also include Sunset (RFC 8594).

    Policy details: https://modelcostcomparison.com/developers#versioning-and-deprecation


    ## Errors

    All API errors use RFC 9457 application/problem+json with stable `code`, human `detail`/`title`, and optional `resolution` hint. A nested `error` object mirrors `{ code, message, hint? }` for older clients.'
  contact:
    name: Lazige
    url: https://lazige.agency
  x-mcc-versioning:
    strategy: url-path
    current: /api/v1
    description: Stable REST operations use major-version URL paths beginning with /api/v1. Breaking changes ship under a new major path (/api/v2). Additive, non-breaking changes may appear on the current major without a path bump.
    deprecation: 'Deprecated operations return Deprecation: true (RFC 9745) and a Link rel="successor-version" header pointing at the replacement. When a removal date is set, responses also include Sunset (RFC 8594).'
    docsPath: /developers#versioning-and-deprecation
servers:
- url: https://modelcostcomparison.com
tags:
- name: Cron
paths:
  /api/v1/cron/trigger-ai-pricing-refresh:
    get:
      operationId: triggerPricingRefreshV1
      summary: Trigger weekly pricing refresh workflow
      description: Authenticated cron endpoint. Requires Bearer CRON_SECRET.
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Refresh triggered
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/AgentError'
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
      tags:
      - Cron
components:
  schemas:
    AgentError:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - code
      - error
      description: RFC 9457 problem details with MCC code/resolution and nested error object
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
        code:
          type: string
        resolution:
          type: string
        documentation_url:
          type: string
          format: uri
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
            path:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: CRON_SECRET for pricing refresh