create_model
Define custom models for cost tracking and token pricing by specifying model names, regex patterns, pricing units, and optional per-unit USD prices.
Instructions
Creates a custom model definition for cost tracking and token pricing. modelName, matchPattern, and unit are required. unit values: TOKENS | CHARACTERS | MILLISECONDS | SECONDS | IMAGES | REQUESTS. Prices are per unit in USD (e.g. inputPrice=0.000001 means $1 per million tokens). Omit prices for models where you do not want cost tracking. startDate format: ISO-8601 date, e.g. 2025-01-01T00:00:00Z.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelName | Yes | Model name used for display and matching. Required. | |
| matchPattern | Yes | Regex pattern to match against generation model names. Required. | |
| unit | Yes | Pricing unit: TOKENS | CHARACTERS | MILLISECONDS | SECONDS | IMAGES | REQUESTS. Required. | |
| inputPrice | Yes | Input price per unit in USD. Omit if not tracking input cost. | |
| outputPrice | Yes | Output price per unit in USD. Omit if not tracking output cost. | |
| totalPrice | Yes | Total price per unit in USD (alternative to input/output split). Omit if using input/output prices. |