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.
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