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/meor GET/v2/projects//usage. - Any request that returns an error.
- Refused or duplicate file uploads (same bytes in the same thread return
duplicate: trueand cost nothing). - Replaying a request with the same
Idempotency-Keywithin 24 hours. - Turns that fail to learn (
not_learned): the input charge is refunded and reported inrefunded_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 returns402:
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.
200):
Errors:
Keeping costs predictable
- Use
detail: "brief"onobserve-and-respondandrespondwhen short answers are enough. - Use
respondorrecallon read-only knowledge agents so routine user questions are not billed for learning. - Batch historical imports up to 100 messages per
observecall. - Upload each document once and pass an
Idempotency-Keyso retries are never billed twice.