> For the complete documentation index, see [llms.txt](https://help.swarmia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.swarmia.com/features/ai-impact/ai-roi.md).

# AI ROI

Weigh what your AI tools and engineering time cost against the stories, pull requests, and code your teams deliver

Available at [AI impact → AI ROI](https://app.swarmia.com/ai/roi/throughput-and-cost)

AI ROI (return on investment) answers the question your finance and leadership teams eventually ask: what is the AI spend buying? It pairs what your organization spends, on engineering time and AI tools together, with what your teams ship.

* [**Throughput & cost**](https://help.swarmia.com/features/ai-impact/ai-roi/throughput-and-cost.md): developer cost and AI token usage combined, as cost per story, pull request, and line changed, against throughput per FTE.
* [**AI cost**](https://help.swarmia.com/features/ai-impact/ai-roi/ai-cost.md): AI token usage on its own, by team, person, and work item.

In Swarmia's [Build framework](https://www.swarmia.com/framework/#return-on-engineering), this is the return on engineering, and it comes last on purpose: a return is the outcome of changing how your organization works, not the first thing to optimize for. Read it alongside [AI adoption](https://help.swarmia.com/features/ai-impact/ai-adoption.md) and [AI autonomy](https://help.swarmia.com/features/ai-impact/ai-autonomy.md), which tell you whether the conditions for a return are there at all.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.swarmia.com/features/ai-impact/ai-roi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
