The SciPy API provides a 'curve_fit' function in its optimization library to fit the data with a given function. This method applies non-linear least squares to fit the data and extract the optimal parameters out of it.

In this tutorial, we'll learn how to fit the curve with the curve_fit() function by using various fitting functions in Python.

We'll start by loading the required libraries.

```
from numpy import array, exp
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
```

` `