Gregory Vargas made a free throw with 0.3 seconds left after being fouled on an offensive rebound and Venezuela stunned Canada 79-78 to qualify for the 2016 Rio Olympics.
Windi Graterol scored 20 points, and Heissler Guillent added 19 -- eight in the final four minutes -- in the semifinal game to help Venezuela qualify for the Olympics for the first time since Barcelona in 1992.
In the second semifinal, Argentina earned a spot in the Olympics, overcoming an 11-point deficit to beat Mexico 78-70.
Luis Scola had 18 points and 10 rebounds for Argentina, and Facundo Campazzo added 15 points.