# preview_ai_cost

Source: https://heyeveryone.ai/docs/mcp/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

```json
{
  "properties": {
    "service": {
      "type": "string"
    },
    "input": {
      "default": {},
      "type": "object"
    }
  },
  "required": [
    "service"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "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

```json
[
  "not_ai_service"
]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Preview an AI action's cost"
}
```
