Modelmeter Estimate API

The Estimate API from Modelmeter — 1 operation(s) for estimate.

GitHub OpenAPI

Operations 1

GET /estimate Estimate the cost of an LLM call #

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/modelmeter-xyz:modelmeter-xyz-estimate-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

modelmeter-xyz-estimate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Modelmeter Estimate API
  version: 0.1.0
  description: 'The changelog of record for the AI stack: source-verified events covering what

    changes in the model layer — deprecations with sunset dates and migration

    targets, price changes, releases — plus current pricing, model cards, and

    three years of price history.


    All responses are JSON. URLs are stable. Endpoints do not require authentication for V1,

    but rate limits apply per IP. An API-key tier with higher limits is planned.


    The data backing this API lives at https://github.com/modelmeters/modelmeter and is

    updated by an autonomous watch/draft pipeline plus human review. Every model entry

    includes a `last_verified` field and every event a verification `status`; judge

    freshness and confidence from those, not from vibes.'
  contact:
    name: Modelmeter
    url: https://modelmeter.xyz
  license:
    name: MIT
servers:
- url: https://modelmeter.xyz
tags:
- name: Estimate
paths:
  /estimate:
    get:
      summary: Estimate the cost of an LLM call
      description: 'Returns the cost of a hypothetical call with the given input and output token counts

        against the named model. Math is shown in the response so agents can verify.'
      parameters:
      - name: model
        in: query
        required: true
        description: Model id in `provider/model` form, e.g. `anthropic/claude-sonnet-4-6`.
        schema:
          type: string
      - name: input
        in: query
        required: true
        description: Input token count.
        schema:
          type: integer
          minimum: 0
      - name: output
        in: query
        required: true
        description: Output token count.
        schema:
          type: integer
          minimum: 0
      - name: format
        in: query
        required: false
        description: Response format. Default is `json`.
        schema:
          type: string
          enum:
          - json
          default: json
      responses:
        '200':
          description: Successful estimate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Estimate'
        '400':
          description: Invalid query parameters.
        '404':
          description: Model not found or unverified.
      tags:
      - Estimate
      operationId: getEstimate
      x-operation-id-source: derived
components:
  schemas:
    Estimate:
      type: object
      properties:
        model:
          type: string
        input_tokens:
          type: integer
        output_tokens:
          type: integer
        input_cost_usd:
          type: number
        output_cost_usd:
          type: number
        total_cost_usd:
          type: number
        pricing_date:
          type: string
          format: date
          description: '`last_verified` of the model entry used.'
        source_url:
          type: string
          format: uri