# Why Ptally is built on Swallow

> Ptally is built on Swallow, the insurance rating engine API behind more than 50 million quotes. Here is what each product does, why we built the state machine on a proven engine, and how Ptally can also call other rating providers.

By Ptally Engineering, 5 February 2026. Category: Engineering.
Source: https://ptally.ai/blog/why-ptally-is-built-on-swallow

Ptally is built on [Swallow](https://www.swallow.app), the insurance rating engine API behind more than 50 million quotes. Swallow works out the price. Ptally runs everything around the price, from the first check to the bind. This post explains why we split the work that way, and why Ptally can also price with rating engines other than Swallow.

## Two jobs, two products

A rating engine has one job: take the details of a risk and return a price, quickly and the same way every time. It has to be fast enough for price comparison sites, exact enough for actuaries to trust to the penny, and versioned so that a quote from last March can be replayed with last March's rates.

Swallow does that job. It is a rating engine API. Pricing teams build, test and publish models in it, and their quote journeys, policy systems and partners call it for a price.

Quote to bind needs more than a price. A case has to be checked, validated, enriched with outside data and put through KYC before it is priced. Some cases need an underwriter to look before they go further. When a customer accepts, the case has to be bound once, by someone allowed to bind it, and the whole history has to be recorded. That is the job of a [state machine](https://ptally.ai/blog/what-is-a-state-machine), and it is what Ptally adds.

| | Ptally | Swallow |
|---|---|---|
| What it is | A rating and rules state machine for quote to bind | A rating engine API |
| Its job | Move each case from first quote to bind, with rating as one stage | Turn a risk's details into a price |
| Pricing | The Swallow engine, another rating provider, or both | Its own engine |
| Record | Every case's state and journey, and every move with who made it | Every quote and the model version that priced it |

## Why build on an engine we already trust

Building a rating engine is slow, careful work. The hard parts are not the arithmetic. They are the edge cases: rounding that matches a filed rate manual, lookups across bands that overlap, tax that differs by territory, and staying fast when an aggregator sends millions of requests a month. Swallow has dealt with those across more than 50 million quotes.

Starting from that engine meant Ptally could spend its effort where agentic quote to bind needs it: states, traffic-light rules, journeys, approvals and a record of every move. When AI agents can move a case on, the rules around the price matter as much as the price.

It also means the model format is shared. A Ptally model is the same readable JSON of ordered steps (lookups, calculations, transforms, exclusions and referrals) that Swallow customers already know, so pricing teams and AI clients work with one format.

## Ptally can also call other rating providers

Many insurers and MGAs already price somewhere. Replacing a rater that works, and that a regulator may have seen, is rarely the first thing a team wants to do.

So rating in Ptally is a stage, not a fixed engine. That stage can:

- **Price with the Swallow engine.** Rates, lookups and calculations run inside the Ptally model, versioned and tested with the rules around them.
- **Call another rating provider.** A step calls an existing rating engine over its API and uses the price it returns. You keep your rater, and Ptally adds the checks, refers, journey and record around it.
- **Do both.** One product prices on the Swallow engine while another calls out, and a product can move across later without changing the quote journey.

Whichever route prices the case, the rest works the same way: the traffic lights, the refer rules, the journey and the audit trail.

## Which one should you use?

Choose **Swallow** if your quote journey, policy system and workflow already exist and you need a fast, tested price to call from them. It is the shorter path to a rating engine API.

Choose **Ptally** if you want AI agents, people and integrations to quote, check, refer and bind safely, with every case in a known state and every move recorded. You can price with Swallow's engine inside Ptally, or keep the rater you have.

There is more on how the two fit together on the [Built on Swallow](https://ptally.ai/swallow) page, and you can find Swallow at [swallow.app](https://www.swallow.app).
