---
name: privi-token-cost
description: Use to project model inference cost when per-million token prices are supplied.
---

# Estimate AI token cost

Use the Privi Agent Survival remote MCP tool `privi_token_cost` when this workflow is relevant. The server is a stateless calculation service. It does **not** perform external actions or manage the calling agent's credentials.

## Procedure

1. Confirm the input is user-authorized and contains no unnecessary secrets.
2. Connect an MCP-capable agent to `https://privi-ai-21-gateway.onrender.com/mcp` or use `POST /v1/tools/privi_token_cost` with your own API key.
3. Provide the following JSON tool arguments:

```json
{"input_tokens":2000,"output_tokens":500,"input_usd_per_million":1,"output_usd_per_million":4}
```

4. Review returned values before acting; do not claim remote actions occurred.
5. Rates must come from the operator; no live market pricing is assumed.

## Production cautions

All Privi tool executions require a prepaid API key; public discovery does not grant free execution. Stripe and Base checkout remain disabled until verified.

© 2026 Privi World Corp. All rights reserved.
