I have seen some guides with already created model. This method is a bit more advanced, you are able to choose custom photo, have liveness selfie features + possibility rotate the head by your needs.
Warning:
This method will not pass verification where is needed HQ selfie because we will be generating “lifelike avatars” that does not look super realistic. Anyways i found this useful for many sites including instagram.
Happy verification