Docs
preview_ai_cost
Credit cost of an in-app AI action before it runs. Pass the service name and its input (adapt_content is per channel). transcribe_media before its media is probed: `unknownUntilProbed`, `credits` is the minimum. AI runs (ask_workspace, repurpose_source, plan_content) return a `range`, charged by use; `credits` is its max.
Credit cost of an in-app AI action before it runs. Pass the service name and its input (adapt_content is per channel). transcribe_media before its media is probed: unknownUntilProbed, credits is the minimum. AI runs (ask_workspace, repurpose_source, plan_content) return a range, charged by use; credits is its max.
Access and cost
- Kind: query
- Scope: account
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"service": {
"type": "string"
},
"input": {
"default": {},
"type": "object"
}
},
"required": [
"service"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"credits": {
"minimum": 0,
"type": "integer"
},
"description": {
"type": "string"
},
"unknownUntilProbed": {
"default": false,
"type": "boolean"
},
"range": {
"additionalProperties": false,
"properties": {
"min": {
"minimum": 0,
"type": "integer"
},
"max": {
"minimum": 0,
"type": "integer"
},
"typical": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"min",
"max",
"typical"
],
"type": "object"
}
},
"required": [
"credits",
"description",
"unknownUntilProbed"
],
"type": "object"
}Errors
[
"not_ai_service"
]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "Preview an AI action's cost"
}