Developer tools6 min readBy Purrkey team

ChatGPT API on Purrkey: a grounded-answer workflow and monthly cost table

A developer workflow that chains a grounded answer, fresh headlines, organic search results and a cross-check answer, with a monthly budget table for a small research agent

On this page

You are building a research agent and need a monthly budget for the Purrkey calls it will make, priced before you write the first line of code. The agent answers questions about a market, checks for fresh headlines, and pulls organic results to see what pages say. Four calls cover that work, and each one has a listed price you can multiply out in advance

The task and the deliverable

The developer signs off on one table before implementation: one row per call type, with the planned count, the price per call and the monthly total. That table is what the code gets written against. Nothing in this article has been run, so the figures below are a plan and arithmetic on catalog prices, not a bill

The design of that table:

ColumnWhat goes in itExample value
Callthe job the call doesgrounded answer
Tool idthe toolId from the cataloganyapi.chatgpt.search
Planned callscalls per month12
Price per calllisted maximum per call$0.0048
Monthly totalplanned calls x price per call$0.0576

The example values in the last column are invented placeholders showing the shape

The four tools on Purrkey

ToolReturnsPrice per callPick it when
anyapi.chatgpt.searchAn answer to a web-grounded question, with source citations$0.0048A question needs a cited response
anyapi.google.newsGoogle News results for a query$0.00099You need fresh headlines and publish times
anyapi.google.searchGoogle web results for a query$0.002You need result lists and page snippets
anyapi.perplexity.searchAn answer with citations$0.0111The primary answer needs independent support

Each row is one POST /v1/runs call with a toolId and the question or query text. The billing unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." Prices were read from the public catalog. Read the Returns column before the price column, because a per-call price says little until you know what one call gives back and how many calls the job takes

How to choose for this task

Four rules set the mix for this agent

  • Grounded answer: use anyapi.chatgpt.search when a question needs a cited response. The call returns an answer to a web-grounded question with the sources attached.
  • Fresh headlines: use anyapi.google.news when the answer depends on what has just been published. It returns news results for a query, and the publish time in a result is what you read for freshness.
  • Organic results: use anyapi.google.search to gather result lists and page snippets, which suits a step where the agent picks pages to open rather than states a conclusion.
  • Cross-check: reserve anyapi.perplexity.search for a primary answer that needs independent support. It returns an answer with citations of its own.

Reading the output before the next call

The grounded answer and the cross-check answer arrive as prose with citations attached. The decision they drive is narrow: if the citations back the claim, the row closes; if they do not, spend one cross-check call on that question. News results arrive as a list with headlines and publish times, which is the freshness signal. Organic results arrive as a list with page snippets, and the snippet is what you read to decide whether a page is worth opening

One limit sits on the first step. The catalog describes the grounded answer as one question returning one answer with citations, so twelve questions in a month means twelve calls, not one call carrying twelve questions. Build the planned count from the number of questions the agent will actually ask

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to price and run a
four-call research workflow. Before running anything, check the current
inputs and the current price of every tool id below, and stop if a price
differs from the figure I give you.

For each question, call anyapi.chatgpt.search first for the cited answer.
Then call anyapi.google.news for fresh headlines and publish times, and
anyapi.google.search for organic results and page snippets. Add
anyapi.perplexity.search only when the grounded answer needs independent
support. Do not guess at results and do not write application code.

Return one table with these columns: question, tool id, planned calls,
price per call, monthly total, and whether a cross-check was needed.

Question set (example, invented):
- Which suppliers shipped to acme-plumbing.example last quarter?
- What changed in the plumbing supply market this month?
- Which trade shows are scheduled for plumbing suppliers next quarter?

Replace the example question set with your own. Keep the first run to a single question so you can see what each call actually gives back before you commit to a monthly count

Estimated tool cost

Each price is a maximum per call, so the totals below are ceilings for the plan rather than settled charges

StepFormulaUnit pricePlanned quantityTotal
Grounded answer checkscalls x price per call$0.004812$0.0576
Fresh headline pullscalls x price per call$0.0009920$0.0198
Organic result pullscalls x price per call$0.00215$0.03
Cross-check answer runscalls x price per call$0.01118$0.0888
Monthly planSum of the rows above

Model fees for the agent itself are not counted. To test a change in the mix, multiply the new call count by the listed price for that tool and add the rows again; what one call returns and how many calls the job needs decide whether the swap is worth it

Next action

Open the ChatGPT search tool page and confirm the current input fields and the current price before you commit the monthly counts to the plan

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with ChatGPT.
Explore ChatGPT tools and pricing

FAQ

How much does one ChatGPT API call cost on Purrkey?

The grounded answer call, anyapi.chatgpt.search, is listed at $0.0048 per call. The billing unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. Twelve of these calls in a month come to $0.0576 at that maximum.

How do I budget a research agent that uses the ChatGPT API?

Multiply planned calls by the price per call for each tool in the mix, then add the rows. The sample month in this guide is 55 calls across four tools and totals $0.1962 at the listed per-call maximums.

When should the agent use the ChatGPT search call instead of a web search call?

Use anyapi.chatgpt.search when a question needs a cited response, because it returns an answer with source citations. Use anyapi.google.search when the agent needs result lists and page snippets to choose pages from.

What does max_call mean in the Purrkey catalog?

It is the billing unit: Maximum per call. Successful runs settle at the actual AnyAPI charge. A monthly total built from these prices is therefore a ceiling for the plan.

How many calls does one research question take?

One grounded answer call answers one question with citations, so the planned count follows the number of questions. A fuller pass adds a news pull for fresh headlines, an organic pull for page snippets, and in some cases one cross-check answer run.

Does the monthly plan include the agent model fees?

No. The table prices the Purrkey calls only, and model fees for the agent that drives them are not counted.

How do I start this workflow from an agent?

Point the agent at the Skill file, have it check the current inputs and price of each tool id, then run the four calls and return a table of question, tool id, planned calls, price per call and monthly total.

Next step

Try this with ChatGPT

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See ChatGPT tools

Share this article