I have recently seen in my topology course that if $X$ is any set,
Given a family of functions $\{f_i : X \to Y_i\}_{i \in I}$, with $(Y_i, \tau_i)_i$ topological spaces, the initial topology on $X$ with respect to this family is the one generated by $\{f_i^{-1}(U_i) : i \in I, U_i \in \tau_i \}$, which is the coarsest such that the functions $f_i$ are continuous, and verifies $h : Z \to X$ continuous if and only if $f_ih$ is continuous for all $i$ in $I$.
In a similar way, given a family $\{f_i : Y_i \to X\}_{i \in I}$, the final topology $\tau$ in $X$ is defined by $U \in \tau $ if and only if $f_i^{-1}(U) \in \tau_i \ (\forall i \in I)$. This is the finest topology such that the family is countinuous, and $h : X \to Z$ is continuous if and only if $hf_i$ is for all $i \in I$.
It was also mentioned that the reciprocal of both statements is true, i.e. that if a topological space $(X, \tau)$ verifies $h : Z \to X$ (resp. $h:X \to Z$) continuous if and only if $f_ih$ (resp. $hf_i$) continuous for all $i$, for all $h$, it has the initial (resp. final) topology with respect to the family $(f_i)_i$.
It is easy to see taking $h \equiv id $ that the given topology $\tau$ is finer/coarser than the initial/final topology, because all the functions $f_i$ are continuous.
Any hints on how to prove the other inclusion?
Let it be that $\tau$ is the topology on $X$ initialized by the $f_i$ in the sense that a function $h:Z\to X$ is continuous iff $f_ih:Z\to X_i$ for every $i\in I$.
Further let it be that $\tau'$ is the topology generated by the collection $\mathcal V=\{f_i^{-1}(U_i)\mid i\in I, U_i\in\tau_i\}$.
Then for every space $(Z,\tau_Z)$ and every function $h:Z\to X$ the following statements are equivalent:
$f_ih:(Z,\tau_Z)\to (X,\tau_i)$ is continuous for every $i\in I$
$h:(Z,\tau_Z)\to (X,\tau)$ is continuous.
Applying this on $\mathsf{id}:(X,\tau)\to(X,\tau')$ and $\mathsf{id}:(X,\tau')\to(X,\tau)$ we find that $\tau=\tau'$