Two Algerian diplomats kidnapped in Iraq have apparently been shown in video posted on the internet.
An earlier posting said the two men would be killed
The blindfolded men said they were Ali Balarousi, Algeria's top envoy to the country, and colleague Azzedin Belkadi. They were seized in Baghdad last week.
A statement accompanying the video said it was posted by al-Qaeda in Iraq, the group led by Abu Musab al-Zarqawi.
Earlier an internet statement attributed to the group said it had decided that both men would be killed.
Algeria announced on Monday that it had pulled all its diplomatic staff out of Iraq.
Algerian minister Bouguerra Soltani said his government was trying to secure the men's release.
"We are still expecting a happy ending. I'm still hopeful," he said in Algiers.
Iraq has been trying to encourage other countries to set up embassies in Baghdad, but diplomatic staff have become a target for militants.
Egypt's top envoy has already been abducted and killed.
Al-Qaeda in Iraq has also claimed to be behind that attack.