Skip to main content
Question

Openrouter API Call Timeout

  • September 24, 2026
  • 1 comment
  • 4 views

Redouane Abou S

Hello ,

 

I'm building WhatsApp automation and need to call openrouter API sometimes it ok but sometimes i get réponse is null...i suspect its related to the 10s Time Out 

 

Need Help 

Thanks ! 

1 reply

cata_rendon
Forum|alt.badge.img+5
  • Community Moderator
  • September 24, 2026

Hi ​@Redouane Abou S, that pattern, working sometimes and returning null other times, usually means the model is taking longer than the request waits for. Two ways to handle it:

  1. Make the call faster: use a smaller model, set a low max_tokens, turn off streaming and keep the prompt short. This helps but it's not reliable, since response times vary.
  2. The one that actually fixes it: don't wait for OpenRouter inside the request. Send the call to a middleware (Make, n8n or your own endpoint) that responds to ManyChat right away, and once the model replies, send the text back to the contact using ManyChat's Send Content API. That way it doesn't matter how long the model takes.

If you go with option 2 and need a hand with the setup, let us know.
Cata Rendon