Cayra · Schema
LicenseUsageEventRequest
Usage event payload for license-key scoped endpoints.
Artificial IntelligenceEnterpriseDecision IntelligenceERPDatabase
Properties
| Name | Type | Description |
|---|---|---|
| model_name | string | LLM model name |
| input_tokens | integer | Prompt tokens consumed |
| output_tokens | integer | Completion tokens produced |
| cache_read_tokens | integer | Prompt cache read tokens (if provider supports) |
| cache_creation_tokens | integer | Prompt cache creation tokens (if provider supports) |
| idempotency_key | object | Optional idempotency key for dedupe |
| run_id | object | Optional execution run identifier |
| total_cost | number | Cost in license currency |
| usage_date | object | Override usage date (defaults to current UTC date) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-license-usage-event-request-schema.json",
"title": "LicenseUsageEventRequest",
"description": "Usage event payload for license-key scoped endpoints.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/cayra-io-usage-api-openapi.yml#/components/schemas/LicenseUsageEventRequest",
"properties": {
"model_name": {
"type": "string",
"maxLength": 128,
"title": "Model Name",
"description": "LLM model name"
},
"input_tokens": {
"type": "integer",
"minimum": 0.0,
"title": "Input Tokens",
"description": "Prompt tokens consumed",
"default": 0
},
"output_tokens": {
"type": "integer",
"minimum": 0.0,
"title": "Output Tokens",
"description": "Completion tokens produced",
"default": 0
},
"cache_read_tokens": {
"type": "integer",
"minimum": 0.0,
"title": "Cache Read Tokens",
"description": "Prompt cache read tokens (if provider supports)",
"default": 0
},
"cache_creation_tokens": {
"type": "integer",
"minimum": 0.0,
"title": "Cache Creation Tokens",
"description": "Prompt cache creation tokens (if provider supports)",
"default": 0
},
"idempotency_key": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"title": "Idempotency Key",
"description": "Optional idempotency key for dedupe"
},
"run_id": {
"anyOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
],
"title": "Run Id",
"description": "Optional execution run identifier"
},
"total_cost": {
"type": "number",
"minimum": 0.0,
"title": "Total Cost",
"description": "Cost in license currency"
},
"usage_date": {
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "null"
}
],
"title": "Usage Date",
"description": "Override usage date (defaults to current UTC date)"
}
},
"type": "object",
"required": [
"model_name",
"total_cost"
]
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cayra-io-license-usage-event-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.