> For the complete documentation index, see [llms.txt](https://docs.init.capital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.init.capital/borrowing/flash-borrow.md).

# Flash Borrow

Flash borrow is a more composable type of flash loan.&#x20;

When a user creates a position, rather than having to deposit collateral before borrowing such that position is healthy, a user can:

1. Borrow tokens
2. Use the borrowed tokens for arbitrary actions in integrated protocols&#x20;
3. Deposit collateral to ensure position is healthy

All of that, within one transaction. This allows users to borrow A to interact with integrated protocols, to return B as collateral – which maximizes composability.

Ultimately, this simplifies the looping process, position rebalancing, and minimizes gas fees.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.init.capital/borrowing/flash-borrow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
