I had a buddy with a GT that had the tranny completely overhauled. His symptom was the car reving real high but he couldn't get above 25mph. Pontiac covered it under warranty.
I'd have it towed to a shop, it doesn't sound very safe to drive and won't be good for the engine to be near the rev limiter for that amount of time.
Good luck. Hopefully this isn't your problem.