Skip to main content
Your organization holds one balance of credits. Calls that learn or answer spend credits from this balance; calls that create, read, list, update, or delete resources are free.

The price

Input and output share the same price. Your organization can have a custom price by agreement. The credits field of a project’s usage report shows the net amount charged.

What each v2 route counts

Memories the agent reads internally while searching are never billed. You pay only for what is learned and what is returned to you.

How tokens are counted

Priors counts words and multiplies by 1.3 (one English word is about 1.3 tokens):
  • 1,000,000 tokens cost 10,000 credits.
  • 1 word costs 0.013 credits.
  • 1,000 words in and 1,000 words out cost 26 credits.

What is never charged

  • Creating, reading, listing, updating, or deleting agents, threads, files, members, or memories.
  • Polling GET…/observe/, reading GET/v2/me or GET/v2/projects//usage.
  • Any request that returns an error.
  • Refused or duplicate file uploads (same bytes in the same thread return duplicate: true and cost nothing).
  • Replaying a request with the same Idempotency-Key within 24 hours.
  • Turns that fail to learn (not_learned): the input charge is refunded and reported in refunded_credits. An answer that was delivered stays charged.
  • Interrupted jobs that resume automatically after a Priors restart, or already-learned pieces skipped by POST/v2/agents//files//resume.

Cost examples

When the balance hits zero

Before a billed request runs, Priors checks that the balance is above zero. The call that brings the balance to zero or below still completes; the next billed call returns 402:
Free calls keep working, and no memories or files are deleted. Once credits are added, the same calls succeed again. No API call returns the balance. An Org admin buys credits in the Priors application.

Read a project’s usage

Call GET/v2/projects//usage for totals, daily buckets, and sums by agent, by API key, and by operation over a date range. from, to, and tz are required. The range is at most 366 days, counting both ends. To narrow the report, add agent_id, route, or api_key_id. Your key’s project is api_key.project_id on GET/v2/me.
Success (200):
Errors:

Keeping costs predictable

  • Use detail: "brief" on observe-and-respond and respond when short answers are enough.
  • Use respond or recall on read-only knowledge agents so routine user questions are not billed for learning.
  • Batch historical imports up to 100 messages per observe call.
  • Upload each document once and pass an Idempotency-Key so retries are never billed twice.