# Prices your agent can read, not just you.

> Every Dizo price tier and credit cost is one unauthenticated GET away, so agents and scripts can price a job before they have a key or spend a credit.

`GET https://api.dizo.ai/v1/pricing` returns every tier and per-endpoint credit cost as JSON, with no API key. Agents can turn a plan into dollars before they make a single billable call.

## Highlights
- **No auth required.** Anyone, or any agent, can call `GET /v1/pricing`. It is free and never charged.
- **Tiers as data.** Each tier has `min_usd`, `usd_per_credit` and `name`, from $0.025 down to $0.010.
- **Costs per endpoint.** The same response carries the credit cost of each API, so estimates use live numbers.
- **Pairs with dry runs.** Use pricing for estimates and `"dry_run": true` for the exact cost of one specific call.
- **Markdown twin too.** The pricing page is also published as `/pricing.md` for agents that read pages instead of APIs.
- **In tool descriptions.** Every MCP tool states its credit cost, so models see prices at the moment they choose a tool.

## Steps
1. **Fetch the table** — `GET /v1/pricing` at the start of a session.
2. **Estimate the job** — Multiply expected calls by credit cost, then by your tier's rate.
3. **Quote the real call** — Send the request once with `"dry_run": true`.
4. **Run with a ceiling** — Send it for real with `max_credits` set.

## APIs used
| API | Endpoint | Credits | Charged | Reference |
|---|---|---|---|---|
| Pricing | `GET /v1/pricing` | Free, no auth | Never | [docs](https://dizo.ai/docs/pricing.md) |
| Key info | `GET /v1/me` | Free | Never | [docs](https://dizo.ai/docs/me.md) |
| Balance & usage | `GET /v1/billing` | Free | Never | [docs](https://dizo.ai/docs/billing.md) |


## What machine-readable pricing is for

A pricing page written for people is a poor input for software. Prices hide inside tables, footnotes and "contact us" buttons, and the only way for an agent to use them is to scrape HTML and hope the layout does not change. That is a problem the moment you ask an agent to plan work that costs money: it cannot stay inside a budget it cannot read.

Dizo publishes its prices as data. A single request, `GET https://api.dizo.ai/v1/pricing`, returns the volume tiers and the credit cost of each endpoint as JSON. It needs no API key and it is never charged. An agent can call it before it has been given credentials, a script can call it in a build step, and a finance spreadsheet can pull it on a schedule. The numbers are the same ones on the human [pricing page](/pricing), just in a shape code can use.

## What the endpoint returns

The response has two parts. `tiers` is an array of the five purchase tiers, each with `min_usd`, `usd_per_credit` and `name`: Pay as you go from $10 at 0.025, Builder from $500 at 0.021, Growth from $2,000 at 0.017, Scale from $10,000 at 0.013 and Enterprise from $50,000 at 0.01. The second part, `costs`, holds the per-endpoint credit costs. The [pricing reference](/docs/pricing) shows the exact shape.

Reading the tiers is straightforward. To find the rate for a purchase of a given size, pick the tier with the highest `min_usd` that is still less than or equal to the amount. A $750 purchase lands in Builder; $12,000 lands in Scale. Because the rate is set by each single purchase or auto-refill, that is all the logic an agent needs to convert dollars to credits or back again.

Other billing and usage endpoints are free as well, but they need a key because they describe your account. Pricing is the one that describes Dizo, so it is open.

## Worked example: pricing a job before it runs

Suppose an agent is asked to find a verified email for 2,000 contacts in a CRM export and to add a mobile number for the 200 most senior. It fetches pricing and reads the relevant costs: an email lookup is 1 credit and a phone lookup is 10, both charged only if found.

The worst case is easy: 2,000 email credits plus 2,000 phone credits, so 4,000 credits. The agent can also offer a likely case. If it assumes 70% of emails are found and 60% of phones, that is 1,400 plus 1,200 credits, or 2,600. Using the tier array, it reports the ceiling at the account's rate: 4,000 credits is $100 at pay-as-you-go, $68 if the credits were bought at the Growth rate. That is the kind of message a person can approve in one glance, and it costs nothing to produce.

## Worked example: choosing a purchase size

The tier array also lets software answer the reverse question: given a monthly need, what should we buy? Say a pipeline uses about 30,000 credits a month. The agent can compute the cost at each tier that a single purchase of that size would fall into. 30,000 credits at $0.025 would be $750, but $750 is a Builder-sized purchase, so the real cost is 30,000 × $0.021 = $630.

It can then show the effect of buying more at once. Three months of credits, 90,000, at the Builder rate is $1,890, just under the Growth threshold. Rounding the purchase up to $2,000 moves it to $0.017 and buys 117,647 credits, enough for nearly four months. The agent presents both options; a person decides, because buying is a billing write the agent should not make itself.

None of this needs special logic beyond sorting four or five rows. The value is that the numbers come from Dizo at the time of the calculation, so nobody has to maintain a copy of the price table inside the agent's prompt or a config file.

## Pricing versus dry-run quotes

The pricing endpoint answers "what do things cost in general". A [dry-run quote](/features/dry-run-quotes) answers "what will this exact request cost". You get one by adding `"dry_run": true` to any billable call; Dizo returns the quote and spends nothing. On MCP the same thing is the free `dizo_quote` tool.

Use them in that order. Pricing is right for planning, for comparing options and for estimates that span many calls you have not written yet. A dry run is right once the request exists, because it reflects the actual body: the number of items in a batch, the columns on a list, the `limit` on a search. The published guidance for agents is to dry-run any job that may exceed about 100 credits, then send the real call with `max_credits` set as a hard ceiling.

## How agents discover and use prices

Prices reach an agent through several doors, and each suits a different kind of client. MCP clients see costs in the tool list itself: every tool on the Dizo MCP server states its credit cost in its description, so the model reads "1 credit if found" or "10 credits if found" at the moment it picks a tool. That alone stops many expensive mistakes, like reaching for a phone lookup when an email would do.

Agents that read documents rather than call APIs can use the Markdown twin of the pricing page at `/pricing.md`, or the index at `/llms.txt`. Agents built on the REST API can call `/v1/pricing` directly. And during execution, every response carries `x-dizo-credits-used` and `x-dizo-credits-remaining` headers, so an agent can track actual spend against its estimate call by call. See the [machine-readable docs](/features/machine-readable-docs) page for the full set of discovery files.

## A sensible budgeting loop for agents

Put together, a well-behaved agent follows a short routine. It calls `GET /v1/me` once at start-up to learn its scopes, its `max_credits_per_request` and its remaining daily and monthly budget. It reads pricing to turn the task into an estimate. It checks `GET /v1/billing` before long loops and stops to ask its human if monthly spend is near the cap.

Then it quotes and runs. Free counts size a market before any search. A dry run prices the specific call. The real call goes out with `max_credits` and an `Idempotency-Key` header so retries are never charged twice. Each step is cheap or free, and together they mean the agent never discovers the price of its work after the fact.

## Other uses beyond agents

Machine-readable pricing is not only for AI. A product that embeds Dizo data can read the tiers to calculate its own margins, or to show customers an estimate before running a job on their behalf. A finance team can pull the tier table into a spreadsheet and model the cost of different purchase sizes against forecast usage.

Internal tools benefit too. A RevOps dashboard can multiply last month's usage by current credit costs to project next month. A CI check can fail a pull request if a new pipeline step would push a scheduled job over a budget. Each of these would otherwise rely on someone copying numbers from a web page and remembering to update them.

## Limits and when you don't need it

If you only make occasional calls by hand, you do not need this endpoint; the human pricing page and a dry run will do. It earns its place when software is deciding what to spend: an agent planning outreach, a pipeline running nightly, or a product passing data costs on to its own customers.

- Pricing gives list costs, not hit rates. Found-only endpoints may cost less than the ceiling you compute.
- It describes Dizo, not your account. Use `GET /v1/billing` for balance, spend and refill settings.
- It cannot buy anything. Top-ups need a key with `billing:write` and explicit human approval.
- Fetch it rather than hard-coding numbers, so estimates stay right if prices change.

## FAQ

### Do I need an API key to read Dizo's prices?
No. `GET https://api.dizo.ai/v1/pricing` needs no authentication and is never charged. You can call it before you create an account.

### What does the pricing response include?
A `tiers` array with `min_usd`, `usd_per_credit` and `name` for each of the five purchase tiers, plus the credit costs for each endpoint.

### How is this different from a dry run?
Pricing gives general costs for planning. A dry run, `"dry_run": true` on any billable call or the `dizo_quote` MCP tool, gives the exact cost of one specific request and spends nothing.

### Is there an MCP tool for pricing?
Not for the pricing table itself, but every MCP tool states its credit cost in its description, and `dizo_quote` prices any call exactly. Agents that read pages can use `/pricing.md`.

### Can an agent use this to buy credits?
No. Pricing is read-only. Buying credits needs a key with the `billing:write` scope, keys are read-only for billing by default, and agents should always get explicit human approval first.

### Should I hard-code Dizo's prices in my agent's prompt?
It is safer to fetch them. A copy in a prompt or config file goes stale silently, while a call to `/v1/pricing` at the start of a session is free and always current. Keep the agent's logic simple: read the tiers, pick the rate, multiply.

### How should an agent track spend while it works?
Read the `x-dizo-credits-used` and `x-dizo-credits-remaining` headers on every response, and check `GET /v1/billing` before long loops. Stop and ask the human if monthly spend is near the cap.
