\documentclass{article}

\begin{document}

\title{Welcome to API}
\author{Umesh Vishwakarma}

\maketitle

\section{Section 1}

Some text

\begin{figure}
\caption{This is a test for figurecaption.
Multiple lines}

\end{figure}

More words follow.

\section{Section 2}

The end



\end{document}
