These seem to be two different ways of saying the same thing.We usually say "ask your opinion" when we mean "ask you what you think". We say "ask for you opinion" when we mean "ask you to give them your opinion".
If you ask someone's opinion you are also asking for something.Therefore, "ask for" implies some sort of request for something.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: