RIO DE JANEIRO — Two developing countries, enormous in population and geography, in the grip of devastating coronavirus outbreaks. Hospitals running out of supplies. Patients turned away. A new variant everywhere. Outside help desperately needed.

For India, upended by record infection rates, the world has responded. The White House this week touted the delivery of more than $100 million in supplies. Singapore and Thailand sent oxygen. Britain’s Prime Minister Boris Johnson said the United Kingdom would do “all it can.”

But for Brazil, which has buried some 140,000 coronavirus victims in the past two months, the international response has been more muted. President Jair Bolsonaro in March called on international organizations to help. A group of state governors asked the United Nations for “humanitarian aid.” The Brazilian ambassador to the European Union begged two weeks ago for help: “It’s a race against time to save many lives in Brazil.”

But the response has largely been a shrug, criticism of Brazil’s missteps — and limited action, so far.

“What’s happening in Brazil is a tragedy that should have been prevented,” one member of the European Parliament told the Brazilian ambassador at a hearing this month. “But this [is a] tragedy that was based on wrong political decisions.”

“Instead of declaring war against the coronavirus,” lectured another, “Bolsonaro declared war against science, medicine, common sense and life.”

Since Tuesday, European Commission President Ursula von der Leyen has tweeted three times about helping India. She’s said little about Brazil.

The contrast between how the international community has addressed the crises in India and Brazil shows how Brasilia’s mounting diplomatic struggles have complicated the country’s coronavirus response. The international image it has spent decades cultivating — environmentally focused, amiable, multilateral — has been undercut by a president whose administration has insulted much of the world at the very time Brazil was in most need of its help.

Bolsonaro, a far-right nationalist who came to power inveighing against globalism, has accused environmentally inclined European countries of colonialism and illegal deforestation. He amplified a social media post disparaging the appearance of French President Emmanuel Macron’s wife. He echoed President Donald Trump’s baseless claims of electoral fraud, and was the last leader in the G-20 to recognize President Biden’s victory. For months, members of his administration and supporters have fanned racist attacks on China and mocked its vaccine. On Tuesday, his finance minister said China had “invented the virus.”

Brazilian President Jair Bolsonaro, right, appears with Environment Minister Ricardo Salles at the Planalto Palace in Brasilia last week during the climate summit convened by President Biden. (Marcos Correa/Brazil presidency/EPA-EFE/Shutterstock)

Since the beginning of the pandemic, Brazil’s federal government has downplayed the severity of a virus that has maimed this country of 210 million. Bolsonaro has called on people to live their lives normally. Enough have listened — either because of poverty, politics or boredom — to undermine uneven containment measures. More than 400,000 Brazilians have died of covid-19, the worst humanitarian disaster in the nation’s history, and the world’s second-highest toll, behind only the United States.

Now, still mired in the deadliest days of its outbreak — 3,001 more deaths were reported Thursday — a country that has long prided itself on being friends with almost everyone finds itself largely friendless.

“The whole world is trying to help India,” said Mauricio Santoro, a political scientist at the State University of Rio de Janeiro. “But Bolsonaro has become such an international problem that no one will help him.

“No one is talking about giving Brazil much help.”