llmintel-ai Telemetry API
Ingest runtime model usage for cost analysis and model discovery.
Ingest runtime model usage for cost analysis and model discovery.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/llmintel-ai:llmintel-ai-telemetry-api"
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.
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: 3.2.0
info:
title: Llmintel Ai Telemetry API
version: 1.0.0
contact:
name: LLMIntel
url: https://llmintel.ai
email: support@llmintel.ai
description: 'Operations tagged Telemetry across 2 of this provider''s published API definitions: llmintel-ai-openapi.json, llmintel-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://llmintel.ai
description: Production
security:
- bearerAuth: []
tags:
- name: Telemetry
description: Ingest runtime model usage for cost analysis and model discovery.
paths:
/v1/telemetry:
post:
tags:
- Telemetry
summary: Ingest runtime usage
description: 'Ingest a batch of **metadata-only** model-usage records (no prompt/response content). The server hour-truncates each `ts`, resolves the model, prices it at ingest (frozen so historic spend never shifts), and idempotently upserts into per-`(account, environment, model, hour)` rollup buckets. Sent by the `@llmintel/telemetry` agent, but any client may POST this shape.
**Entitlement:** free while your rolling-30-day tracked spend is under $300/mo; above that a paid spend band (Starter $29/mo and up, scaling with your spend) is required, and the `402` response names the recommended band. There is no sampling; all records are ingested.'
operationId: ingestTelemetry
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TelemetryRequest'
responses:
'200':
description: Records accepted.
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Requests allowed per window.
X-RateLimit-Remaining:
schema:
type: integer
description: Requests remaining in the current window.
X-RateLimit-Reset:
schema:
type: integer
description: Unix epoch seconds when the window resets.
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/TelemetryResult'
'400':
description: Invalid query parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, invalid, or revoked API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Tracked model spend exceeds the free allowance; a paid spend-band plan is required. The error message names the recommended band.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The API key is not account-scoped (required for telemetry).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit exceeded.
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Requests allowed per window.
X-RateLimit-Remaining:
schema:
type: integer
description: Requests remaining in the current window.
X-RateLimit-Reset:
schema:
type: integer
description: Unix epoch seconds when the window resets.
Retry-After:
schema:
type: integer
description: Seconds until the window resets.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
servers:
- url: https://llmintel.ai
description: Production
components:
schemas:
Error:
type: object
required:
- error
- message
properties:
error:
type: string
example: unauthorized
message:
type: string
example: 'Provide an API key as ''Authorization: Bearer <key>''.'
TelemetryRequest:
type: object
required:
- records
properties:
records:
type: array
description: Metadata-only usage records. Content fields, if present, are ignored.
items:
type: object
required:
- model
properties:
model:
type: string
example: gpt-4o-2024-05-13
description: Raw model id the app invoked.
inputTokens:
type: integer
minimum: 0
example: 12000
outputTokens:
type: integer
minimum: 0
example: 3400
requestCount:
type: integer
minimum: 0
default: 1
ts:
type: string
format: date-time
description: Call time; hour-truncated server-side. Defaults to now.
environment:
type: string
example: prod
description: Optional env tag; defaults to "default".
app:
type: string
example: checkout-assistant
description: Optional application slug for cost attribution (overrides the API key's app mapping); unknown slugs fall back to the key mapping.
tags:
type: object
additionalProperties:
type: string
example:
feature: search
tenant: acme
description: 'Optional custom cost dimensions (group-by/filter). Limits: ≤10 keys/record, key ≤64 chars, value ≤256; extra/oversized entries are dropped, not rejected.'
cachedInputTokens:
type: integer
minimum: 0
description: Cached-input tokens from provider usage metadata (captured, not yet priced distinctly).
batchInputTokens:
type: integer
minimum: 0
batchOutputTokens:
type: integer
minimum: 0
TelemetryResult:
type: object
properties:
accepted:
type: integer
description: Number of inbound records accepted.
resolved:
type: integer
description: Distinct models that resolved to a tracked id (and were priced).
unresolved:
type: array
items:
type: string
description: Raw models with no tracked match (stored unpriced; a coverage-gap signal).
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: API key as a bearer token. Create one from your dashboard.
x-refined-from:
- llmintel-ai-openapi.json
- llmintel-ai-openapi.json