The definition given by Hungerford in his text Algebra is the following, in a concrete category $\mathcal{C}$, given an object $A$, a set $X$ and a map $\iota:X\to A$, we say that $A$ is free on $X$ if for any object $B$ and map $f:X\to B$ there exists a unique morphism $g:A\to B$ such that $g\circ\iota=f$.
If anything this should be called that $A$ is free on the pair $(X,\iota)$, or is it immediately clear that if $A$ is free on $(X,\iota)$, then $A$ is also free on $(X,\kappa)$? If $X$ is a subset and $\iota$ is the inclusion map, then there is no such ambiguity but he never mentions this.