Gold firmed on Wednesday as the euro was lifted by a report that the IMF plans to boost its lending resources and after rating agency Fitch appeared to soften its stance on Italy, but stock markets weakness linked to talks on Greek debt capped its gains.

Spot gold was up 0.2 percent at $1,654.24 an ounce at 1311 GMT, though U.S. gold futures for February delivery eased 80 cents an ounce to $1,654.70.

The euro rallied broadly after an analyst at Fitch said the ratings agency did not expect Italy to default, with a media report that the IMF would boost its funding capabilities also pushing the single currency higher.

The broader financial markets retained a cautious tone, however, as traders awaited the outcome of talks between Greece and its creditors, which Athens hopes will help slash the country's debt and stave off default.

While in the short term, gold may have further upside, failure of Greece and its private creditors to reach an agreement in the coming days could derail the upward trend, said BNP Paribas analyst Anne-Laure Tremblay.

Gold has risen 5.9 percent so far this year, but has struggled to maintain upward momentum after confidence in the metal was battered by a 10 percent price fall last month.

The metal has managed to climb in January even at times when the euro has softened, but its strength relative to the dollar has tended to have a positive effect on the metal.

Stock markets weakened and safe-haven German bunds rose as traders awaited the outcome of talks on Greece. Athens is making a last-ditch effort to seal a deal with bondholders needed to reduce its debt and secure vital aid funding.

Corrective gains in EUR-USD could continue as there are large short positions in the euro and further gains may result in a sharp short covering euro rally, HSBC said in a note.

This would likely support gold. But... beyond a near-term rally, slow progress on the euro zone debt crisis may keep the market negative on the euro and limit euro gains. We believe this could present headwinds to any further gold rallies.

INDIAN ARDOUR FOR GOLD COOLS

China's gold purchases slowed down ahead of the Lunar New Year holiday, while India's bullion traders held off placing fresh orders after an increase in gold import duty was announced earlier this week.

India's government raised gold import duty to 2 percent of value from the previous flat rate of 300 rupees per 10 grams.

UBS said in a note that while the impact of the hike would probably be muted in the short term, the reaction to this new floating tax rate is likely to be delayed.

The full impact will be observed once internal stocks (with the old import tax) become depleted and new consignments are shipped in, it said.

On the supply side of the market, the world's number four gold miner, Gold Fields, said its fourth-quarter production was down nearly 2 percent, and full-year output was down at 3.49 million ounces.

Meanwhile, African Barrick Gold (ABGL.L), a unit of the world's largest producer Barrick Gold, reported an 11 percent fall in fourth-quarter output after power outages at its Buzwagi mine, resulting in a 2 percent decline in full-year output.

Among other precious metals, silver was up 0.7 percent at $30.26 an ounce. The world's largest primary silver producer, Fresnillo (FRES.L), beat its annual output target and said it expected stable silver production in 2012.

Silver prices fell sharply last year from a record near $50 an ounce it hit in April and underperformed gold in the full year, falling 10 percent against gold's 10 percent rise. Its ratio to gold is currently at 54.9, up from 31.7 in April.

Spot platinum was down 0.7 percent at $1,509.74 an ounce, while spot palladium was flat at $648.97 an ounce.