281 lines · 5.1 KB · JSONRaw
{ "format_version": 1, "id": "ai_calls", "name": "AI call", "plural": "AI usage", "picture": { "photo": "photo:def7d9746f6999e46688bcd61b5492de2fae56de47db15b2494a91c8ebd64202", "object": "tool-ai_usage" }, "builtin": true, "engine": "ai_usage", "columns": [ { "key": "function_name", "name": "Purpose", "type": "text", "readonly": true }, { "key": "provider", "name": "Provider", "type": "text", "readonly": true }, { "key": "model", "name": "Model", "type": "text", "readonly": true }, { "key": "status", "name": "Status", "type": "choice", "readonly": true, "choices": [ "success", "error", "paused", "queued" ], "labels": { "success": "Success", "error": "Error", "paused": "Paused", "queued": "Queued" }}, { "key": "at", "name": "When", "type": "date", "readonly": true }, { "key": "input_tokens", "name": "Input tokens", "type": "number", "readonly": true }, { "key": "output_tokens", "name": "Output tokens", "type": "number", "readonly": true }, { "key": "cache_read_input_tokens", "name": "Cached input tokens", "type": "number", "readonly": true }, { "key": "cache_creation_input_tokens", "name": "Cache write tokens", "type": "number", "readonly": true }, { "key": "latency_ms", "name": "Latency in ms", "type": "number", "readonly": true }, { "key": "cost_amount", "name": "Cost", "type": "number", "readonly": true }, { "key": "currency", "name": "Currency", "type": "text", "readonly": true }, { "key": "device_id", "name": "Device", "type": "text", "readonly": true }, { "key": "mode", "name": "Pass", "type": "choice", "readonly": true, "choices": [ "live", "batch" ], "labels": { "live": "Live", "batch": "Batch" }}, { "key": "error_message", "name": "Reason", "type": "text", "readonly": true }, { "key": "local_day", "name": "Day", "type": "date", "readonly": true } ], "title": "function_name", "date": "at", "sort": { "column": "at", "descending": true }, "by_day": "at", "slip": { "title": "function_name", "subtitle": "model", "trailing": "cost_amount", "photo": null, "toggle": null }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "function_name", "provider", "model", "status", "at", "input_tokens", "output_tokens", "cache_read_input_tokens", "cache_creation_input_tokens", "latency_ms", "cost_amount", "currency", "device_id", "mode", "error_message" ] } ], "parts": { "shape": "sheet", "head": { "facts": [ "model", "status", "at" ] }, "cards": [ { "column": "provider" }, { "column": "model" }, { "column": "status" }, { "column": "at" }, { "column": "input_tokens" }, { "column": "output_tokens" }, { "column": "cache_read_input_tokens" }, { "column": "cache_creation_input_tokens" }, { "column": "latency_ms" }, { "column": "cost_amount" }, { "column": "currency" }, { "column": "device_id" }, { "column": "mode" }, { "column": "error_message" } ], "links": [], "lists": [], "acts": { "more": [] } }, "add": false, "delete": false, "instructions": "Every AI call and one row per pause. Costs retain the recorded currency and conversion rate; do not invent an exchange rate. Change the single budget record to set hourly and daily limits.", "tool": { "name": "AI usage", "key": "ai_usage", "icon": "sparkles", "route": "/lists/ai_calls", "tables": [ "ai_calls", "ai_budget", "ai_daily" ] ,"purpose":"AI spending and usage."}, "related": [ { "label": "Budget", "table": "ai_budget", "new": false }, { "label": "Daily usage", "table": "ai_daily", "new": false } ], "prices": { "claude-haiku-4-5-20251001": { "input": 1, "output": 5, "cache_read": 0.1, "cache_write": 1.25 }, "claude-sonnet-4-5-20250929": { "input": 3, "output": 15, "cache_read": 0.30000000000000004, "cache_write": 3.75 }, "claude-opus-4-8": { "input": 5, "output": 25, "cache_read": 0.5, "cache_write": 6.25 } }, "tables": [], "project": null, "order": null, "empty": { "title": "No AI calls yet", "message": "No spend this month." }}