> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.rightbrain.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.rightbrain.ai/_mcp/server.

# Cost Tracking and Model Insights

> Inspect credit and token usage by task and validate prompt sizes against model context limits.

## What's New

### Context Window Validation

Automatic validation ensures your prompts fit within model limits. Get clear errors before execution instead of runtime failures.

### Credit Usage Reporting

Detailed credit usage reports by task, user, and time period help you understand and optimize AI costs across your organization.

### Token Usage Tracking

See detailed input and output token counts for every task execution, making it easy to forecast expenses and optimize model selection.

## Improvements

* More AI model options for speed and cost optimization
* Better handling of edge cases in model responses
* More granular visibility into credit usage per task

## Current documentation

[Observability](/docs/production/observability) · [Model governance](/docs/production/model-governance)