# Background mode (/docs/spot/background-mode)

> For AI agents, the [documentation index](https://bitrouter.ai/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

{/\* Draft structure. Not implemented yet: agree the behavior before filling this in. Modeled on
<https://developers.openai.com/api/docs/guides/background> \*/}

Background mode is for requests that take a long time, such as long reasoning or large outputs. You start
the request, get an id back right away, and collect the result when it finishes, so a dropped connection or
a timeout doesn't lose the work.

## Start a background request \[#start-a-background-request]

The request parameter that turns it on, which endpoints support it, and the response you get back.

## Check its status \[#check-its-status]

The states a request moves through, and how to poll for them.

## Get the result \[#get-the-result]

Where the finished response is, how long it is kept, and how failures are reported.

## Cancel a request \[#cancel-a-request]

How to cancel a request that hasn't finished.

## Pricing \[#pricing]

How background requests are priced against the [live price](https://bitrouter.ai/docs/pricing), and how a
max price applies while a request waits.

## Limits \[#limits]

How long a request may run, and how many may be in flight at once.