AIP Analyst is an agentic application: a single question can result in many model calls and many queries against Foundry. Understanding where that usage comes from helps you predict cost, choose a model, and design efficient analyses.
Usage from AIP Analyst falls into two categories:
If you have an enterprise contract with Palantir, contact your Palantir representative before proceeding with compute usage calculations.
AIP Analyst works by repeatedly sending the conversation to a model and acting on the response. Each request includes the system instructions, your messages, the definitions of the enabled tools, and the results of earlier tool calls that are still in context. The model's reply, including any extended thinking, counts as output tokens.
Three consequences follow from this design:
Token-to-compute-second rates vary significantly between models. For the current rates, see Measuring compute with AIP. For general background on how tokens are counted, see Tokens in AIP.
The model used for an analysis is recorded with the analysis, so a saved analysis reopens with the same model. See Per-analysis settings.
Most AIP Analyst tools do not perform computation themselves. Instead, they call an existing Foundry system on your behalf, and that system's usual compute model applies. The following table maps each tool category to the system that performs the work.
| Tool category | Work performed by | Usage documentation |
|---|---|---|
| Ontology | Ontology query layer | Compute usage with Ontology queries |
| Actions | Ontology writeback | Ontology Query Compute |
| Datasets | SQL against datasets | Compute usage with SQL in Foundry |
| Functions | Function execution | Understand function compute costs |
| Time series | Time series query layer | Time series query compute usage |
| Media | Media set transformations and downloads | Media set compute usage |
| Contour | Contour analyses | Compute usage with Contour |
| Quiver and Notepad | The applications embedded in the resource, such as Ontology queries | List of Foundry applications and associated usage |
| Workshop | Workshop module configuration metadata | Compute usage with AIP |
| Machinery | Machinery process graph metadata | Compute usage with AIP |
| Visualization and Planning | The model only | Compute usage with AIP |
Tools in the Visualization and Planning categories, such as Create visualization and Context cleanup, do not query a separate backend. Their cost is the tokens spent producing and reading the result. The Workshop lookup and Machinery lookup tools behave the same way. Each reads a resource's configuration rather than running a query, so its cost is the tokens spent reading the returned definition. Any subsequent work on the object types, functions, or action types they surface is charged to the corresponding category.
AIP Analyst Ontology tools query the same Ontology layer as Object Explorer, Workshop, and the Ontology SDK (OSDK), and they are measured under the same model. An Ontology aggregation issued by AIP Analyst is charged as an aggregation query in the same way as the equivalent request from an OSDK application. What differs is the number of queries. An agent exploring an unfamiliar Ontology issues more searches and more discarded intermediate queries than an application built around a fixed set of known queries.
Note that resources AIP Analyst creates continue to consume compute after the analysis ends. A published Quiver dashboard or a saved Contour analysis uses compute each time someone opens it, attributed to that resource rather than to AIP Analyst.
Compute-seconds in Foundry are usually attributed to resources rather than to users. For AIP Analyst, token usage is attributed as follows:
Compute that AIP Analyst federates to other applications follows those applications' own attribution rules. For Ontology queries in particular, compute attaches to the resource where the query originated where one exists, and otherwise to the object types being queried. See Investigating Foundry compute usage from Ontology queries.
You can review usage at several levels of granularity:
The levers below reduce usage without changing the questions you can ask.
Rates differ by more than an order of magnitude between the largest and smallest models. Reserve the most capable models for genuinely difficult reasoning, and prefer smaller models for routine lookups and summarization. For embedded workflows where the question is known in advance, set the model explicitly and hide the model selector so usage stays predictable. See View options and Chat controls.
When a workflow is well understood, you can move work out of the agent's tool loop and into a resource that AIP Analyst calls, or that runs entirely on its own. Doing so changes both the cost profile and the reliability of the result.
| Approach | How AIP Analyst uses it | Token cost | Best suited to |
|---|---|---|---|
| Integrated tools | The agent selects and calls tools directly, one step at a time | Highest: every intermediate result enters context, and each step needs a model call | Ad-hoc and exploratory questions, where the steps are not known in advance |
| Skills | The agent loads a set of reusable instructions, then uses integrated tools to follow them | Similar to integrated tools, with fewer wasted steps | Recurring analyses that follow a known approach but still need judgment |
| Functions | The agent calls the function once with Execute function and reads the returned value | Low: only the inputs and the returned value enter context | Deterministic, repeated computation, such as a business calculation or a fixed multi-step query |
| Pro-code agents | Triggered outside the session; results are read back from the Ontology | Separate from the analysis: the agent runs its own model loop | Long-running or autonomous work that does not need to complete inside an interactive session |
Use the following guidance to choose between them:
Pro-code agents are not a drop-in replacement for an AIP Analyst tool. A published agent function returns Void, so it cannot be called as a query function and cannot return a value into the analysis. Have the agent write its results to Ontology objects, then read those objects from AIP Analyst. See Publish and call a pro-code agent.
A practical pattern is to combine the approaches. Explore with integrated tools until you understand the analysis, then move the stable, expensive parts into a function and keep AIP Analyst for the interpretation and presentation around it.