Skip to content

Usage and plans

This period's usage and the public plans.

On this page

Concepts: Billing and plans

Endpoint summaries come from the OpenAPI document.

GET/v1/usage

This period's plan, usage, overage, spend limit and agent credits. Buying and plan changes happen in the Perafly panel

Operation (MCP tool)
getUsage
Authentication
API key (pfa_…)OAuth token (pfo_…)

Responses

Responses
StatusDescriptionBody
200OKUsage
401ProblemProblem (RFC 9457)
403ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.

GET/v1/plans

Public plans with prices, included usage, limits and features (no credentials needed)

Operation (MCP tool)
listPlans
Authentication
No credentials

Responses

Responses
StatusDescriptionBody
200OKobject
429ProblemProblem (RFC 9457)

Related error codes

Error codes this endpoint and its part of the API answer with. Each one explains what happened and what to do.