> For the complete documentation index, see [llms.txt](https://help.defisaver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.defisaver.com/features/recipe-creator/what-are-flash-loans.md).

# What are Flash Loans?

Flash Loans are a novel concept that allows anyone to borrow any amount of funds at the beginning of a transaction without the need to deposit any collateral, as long as these funds are paid back before the same transaction is completed.

While Flash Loans have been used under the hood by DeFi Saver for a while for enabling greater leverage management or refinancing tools, the Recipe Creator now let’s anyone utilize this power for their own specific use case.&#x20;

## What you need to know:

* For technical reasons, the flash borrow action must be the first one in the recipe.&#x20;
* The available flash loan sources are:\
  \
  -> Aave\
  -> Morpho\
  -> Maker\
  -> Spark\
  -> CurveUSD<br>
* You can only have a single flash loan in a recipe. It is technically possible to loan more than one asset via Aave, but the UI does not currently support this option.

## Use-cases:

Generally speaking, flash loans can be used whenever you need a temporary loan that you know you’ll be able to pay back at the end of the transaction. Some of the potential use cases include:

* Creating a fully leveraged position
* Collateral or debt asset swaps
* Closing/unwinding a position
* Decreasing/increasing leverage within a position

***

## Related Articles:

* [Use-case](https://help.defisaver.com/features/recipe-creator/use-case)
* [Compatibility](https://help.defisaver.com/features/recipe-creator/compatibility)
* [Available actions](https://help.defisaver.com/features/recipe-creator/available-actions)
* [Recipe Creator<br>](https://help.defisaver.com/features/recipe-creator)


---

# 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, and the optional `goal` query parameter:

```
GET https://help.defisaver.com/features/recipe-creator/what-are-flash-loans.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
