Core concepts
Credits and usage
How calls are billed in credits: which operations cost what, why empty answers and unlocked records are free, how to get a quote first, and where to see your spend.
This edition is written for AI agents: complete, explicit and ready to paste. Give it to your agent, or point the agent at its address and it reads the page itself.
# Credits and usage
> How calls are billed in credits: which operations cost what, why empty answers and unlocked records are free, how to get a quote first, and where to see your spend.
- Human-readable page: https://dashboard.sproutsdata.ai/docs/guides/credits
- This document: https://dashboard.sproutsdata.ai/docs/agents/guides/credits
- Index of every agent document: https://dashboard.sproutsdata.ai/llms.txt
- API base URL: https://api.sproutsdata.ai
## Summary
Billed calls take credits from one workspace balance shared by all keys, MCP clients and dashboard members. Credits are bought in the dashboard only. Quote any billed operation first with `POST /v1/credits/quote` (free).
## Billing groups
- Billed: `POST /v1/search`, `POST /v1/similar`, `POST /v1/entities/*`, `POST /v1/relationships`, `/reach`, `/institutions`, `/ask`, `POST /v1/org-chart`, `/departments`, `/locations`, `/people`, `POST /v1/agents/runs`, `POST /v1/enrichment/lookups`, `POST /v1/enrichment/jobs`, `POST /tools/v1/runs`.
- Conditional (charge only for whole records not unlocked, and only when the key holds `dsp.entities.read` and the workspace has bought credits): `POST /v1/lists/{list_id}/items`, `GET /v1/lists/{list_id}/items`, `POST /v1/search/export`, `POST /v1/lists/{list_id}/export`.
- Free: every other operation (filter values, sorts, coverage, `POST /v1/relationships/institutions/lookup`, `GET /v1/org-chart/taxonomy`, reading or canceling runs and jobs, list management, usage history and replays, credits routes, quotes, feedback, Tools catalog).
## Rules
- An empty answer is free. A refused request (any error) is not charged.
- `meta.credits_charged` on each answer is the exact cost; `X-Credits-Charged` header on CSV exports.
- Prices are data and can change; `POST /v1/credits/quote` is authoritative.
- A later page of the same search costs only the rows it adds; re-fetching a paid page costs 0.
- `lock_filters: true`: a company or person search in `auto` with a `query` is billed as auto; in `fast`, with no `query`, or on a document category, as fast.
- Unlocks: paying to see a whole record (lookup, list add, list read, export) unlocks it for the workspace for 90 days; any of those routes then shows it free. After 90 days it charges again.
- Agent runs: the tier price is held at start and settled at the end. `effort: "auto"` holds the `maximum` price (85) and is charged at the effort it chooses.
- Enrichment and tool runs: the maximum possible cost is held first; only values newly found (enrichment) or what the tool returned (tools) is charged; the rest is released.
- Insufficient balance: 402 `credits.insufficient` before anything runs; `extra.required_credits`, `extra.available_credits`. Nothing charged.
## Default prices
| Operation | Default |
| --------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Fast search (`mode: "fast"`; quote `search`) | 0.5 up to 10 rows, then 0.08 a row (100 rows = 7.7) |
| Auto search (`mode: "auto"`, default; quote `search_auto`) | 0.595 up to 10 rows, then 0.085 a row (100 rows = 8.245) |
| Similar, relationships pages (quote `similar`, `relationships`) | 2 up to 10 rows, then 1 per further 10 |
| Shared institutions (quote `institutions`) | 2 flat |
| Entity lookup (quote `lookup`) | 1 per value found; free if unlocked in the last 90 days |
| Org chart (quote `org_chart`) | 1 flat per call that found something |
| Agent run (quote `agent_run` + `effort`) | `quick` 1.02, `basic` 2.125, `standard` 8.5, `detailed` 42.5, `maximum` 85 |
| Enrichment (quote `enrichment` + `fields`) | per value found: `EMAIL` 1, `PHONE` 9, `DOMAIN` 1, `LINKEDIN_URL` 1 |
| Tool run | per tool; `POST /tools/v1/tools/{tool_id}/quote` |
## Quote
- `POST /v1/credits/quote`, scope `dsp.usage.read`, free, holds nothing.
- Body: `operation` (required: `search`, `search_auto`, `similar`, `relationships`, `institutions`, `lookup`, `org_chart`, `agent_run`, `enrichment`); `rows` (default 10; paged operations up to 100; `lookup` up to 1,000; enrichment see contract); `start` (rows already paid for, for a next page); `effort` (required for `agent_run`); `fields` (`enrichment`).
- Answer: `credits`, `basis` (`page`, `records`, `call`, `run`, `run_up_to`, `values_up_to`), `rate_card`, `available` (or null), `covered` (or null).
## Operations
### POST /v1/credits/quote
What a call would cost, from the live price list
- URL: `POST https://api.sproutsdata.ai/v1/credits/quote`
- Scopes (any one): `dsp.usage.read`
- Cost: free
Holds nothing and costs nothing. `available` and `covered` are from the balance read
moments ago, when there is one; a quote never waits on the ledger.
Request body (JSON, required):
- `operation` (string, required): The billable calls, named for what a caller does. One of: `"search"`, `"search_auto"`, `"similar"`, `"relationships"`, `"institutions"`, `"lookup"`, `"org_chart"`, `"agent_run"`, `"enrichment"`.
- `effort` (string or null): `agent_run` only, and required for it. The earlier names (`minimal`, `low`, `medium`, `high`, `xhigh`) are still accepted. One of: `"quick"`, `"basic"`, `"standard"`, `"detailed"`, `"maximum"`, `"auto"`, `"minimal"`, `"low"`, `"medium"`, `"high"`, `"xhigh"`.
- `fields` (array of string or null): `enrichment` only: the fields asked for each of `rows` records. The quote is then every one of them found, each field at its own price (a phone number costs more than an email). One of: `"EMAIL"`, `"PHONE"`, `"DOMAIN"`, `"LINKEDIN_URL"`. Limits: 1 to 4 items.
- `rows` (integer): Rows on the page (paged operations, up to 100), records found (`lookup`, up to 1,000), or for `enrichment`: records when `fields` is given (up to 10,000, a job's most), else values at one price (up to 30,000). Ignored by flat operations and agent runs. An enrichment quote over 30,000 credits is refused, as the job would be. Default `10`. Limits: 0 to 30000.
- `start` (integer): Rows of the same search already paid for (the next page's offset): only the rows beyond them are charged. Default `0`. Limits: 0 to 100000.
Response 200 (application/json): Successful Response
Response fields:
- `basis` (string, required): `page`: these rows of a search; `records`: per record found; `call`: flat, whatever it returns; `run`: an agent run at that effort; `run_up_to`: `auto` holds this much and is charged at the effort it chooses; `values_up_to`: enrichment holds this much (every value asked for) and is charged only for the values newly found. One of: `"page"`, `"records"`, `"call"`, `"run"`, `"run_up_to"`, `"values_up_to"`.
- `credits` (number, required): What the call would be charged, in credits.
- `operation` (string, required): The billable calls, named for what a caller does. One of: `"search"`, `"search_auto"`, `"similar"`, `"relationships"`, `"institutions"`, `"lookup"`, `"org_chart"`, `"agent_run"`, `"enrichment"`.
- `rate_card` (string, required): The price list this quote is from.
- `available` (number or null): What the workspace can spend now, in credits; `null` when not known.
- `covered` (boolean or null): Whether `available` covers this quote; `null` when not known.
Errors:
- 401: No credential, or one that does not verify (`auth.unauthorized`).
- 403: The credential lacks the scope this route needs (`auth.insufficient_scope`), or the signed-in user has not chosen a workspace (`auth.workspace_required`).
- 422: The request is invalid (`request.invalid`), or its cursor is (`pagination.*`).
Example request:
```bash
curl -X POST "https://api.sproutsdata.ai/v1/credits/quote" \
-H "X-API-Key: $SPROUTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operation": "search",
"rows": 50
}'
```
## Where spend is visible
- Per call: `meta.credits_charged`, `meta.credits_balance`.
- Ledger: `GET /v1/credits`, `GET /v1/credits/transactions` (`https://dashboard.sproutsdata.ai/docs/agents/guides/credits/balance-and-spend`).
- Past calls with cost: `GET /v1/usage/history` (`https://dashboard.sproutsdata.ai/docs/agents/guides/usage-history`).
- Dashboard: `/usage`, `/credits`.
## See also
- `https://dashboard.sproutsdata.ai/docs/agents/guides/credits/balance-and-spend`
- `https://dashboard.sproutsdata.ai/docs/agents/guides/credits/buying-credits`
- `https://dashboard.sproutsdata.ai/docs/agents/guides/pagination`