Welcome to the Wefugees Community and it is nice that you reach out to us! You are doing so good finishing school and making an Ausbildung - I wish you all the best for the final year!
First of all, I want to mention that I am not a lawyer and that we can not provide any legal and individual counselling on this public platform.
However, I am happy to share some thoughts on your case, even though it would be helpful to learn more about it (questions like: Are you currently holding a Duldung? Did you apply for asylum? Was it rejected or withdrawn? What kind of Ausbildung is it? etc.).
We have to keep in mind that Ghana is considered as so-called "safe country of origin" and some different rules may apply. The first possible option which came into my mind and not requiring a visa was the residence permit according to section 25a of the German Residence Act though. If I am not mistaken, also people from so-called "safe countries" can apply for it. Do you agree dear @mbeon-Éanna?
Please see Handbook Germany's website to learn more about the respective requirements. In any case, I highly recommend you to contact a refugee/migration counselling office to get individual advice and support. You may check for a "Jugendmigrationsdienst" in the first place. Please let us know if you need help in this regard.
I hope my answer was useful to you and please don't hesitate to get back to us with any futher questions or to keep us updated!
All the best,