You are only allowed to claim the American Opportunity Credit for 4 tax years. If it has been previously claimed for 4 tax years by you or by someone who has claimed you as a dependent, you can't claim it any more. If you have not previously claimed it in 4 tax years, you are still eligible to claim it since you have not yet completed 4 academic years of undergraduate study.