Model Prices
2 actions. Each is callable by the agent as a tool, over HTTP via /api/invoke, and (usually) from a UI page.
model_prices.list
GET
List LLM rate-card rows. Internal/ops only — unavailable under tiered pricing.
- AI tool:
model_prices_list - API:
GET /api/invoke/model_prices.list
Input
| Field | Type | Required | Description |
|---|---|---|---|
modelId |
string | — |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"modelId": {
"type": "string"
}
}
}model_prices.upsert
POST · mutating
Create or update a price for a model. Effective-dated. Internal/ops only — unavailable under tiered pricing.
- AI tool:
model_prices_upsert - API:
POST /api/invoke/model_prices.upsert
Input
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | — | |
modelId |
string | yes | |
task |
string | — | |
inputPricePer1k |
number | — | |
outputPricePer1k |
number | — | |
perCallUsd |
number | — | |
currency |
string | — | |
effectiveFrom |
any | — | |
effectiveUntil |
any | — | |
notes |
string | — |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"modelId": {
"type": "string"
},
"task": {
"default": "chat",
"type": "string"
},
"inputPricePer1k": {
"default": 0,
"type": "number"
},
"outputPricePer1k": {
"default": 0,
"type": "number"
},
"perCallUsd": {
"default": 0,
"type": "number"
},
"currency": {
"default": "USD",
"type": "string"
},
"effectiveFrom": {},
"effectiveUntil": {},
"notes": {
"type": "string"
}
},
"required": [
"modelId"
]
}