#API timeout with /api/v1/models

5 messages · Page 1 of 1 (latest)

stone cedarBOT
#

I'm an AI assistant - my answers may be incorrect and I cannot see screenshots. Please verify information with the OpenRouter docs.

To help debug your issue with API timeouts from New Zealand, I need a bit more information:

  • What is the exact error message or response you receive when the timeout occurs?
  • Are you able to resolve any other OpenRouter API endpoints from your New Zealand connection, or is it only /api/v1/models that times out?
  • What is the full curl command (or relevant code snippet) you are using to call the endpoint?

These details will help me (and the mods if escalation is needed) pinpoint the root cause.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding, or !close when your question is resolved.

tranquil isle
stone cedarBOT
#

Thank you for the details. Based on your report:

  • Both /api/v1/models and /api/v1/models/count time out from your New Zealand connection.
  • /api/frontend/models and /api/v1/responses work fine.
  • Switching VPN region resolves the timeout.

The error you received is:

{"error":"Operation timed out after 10s. Please try again later."}

According to the OpenAPI spec, a timeout at the edge network returns a 524 error:
"524: Infrastructure Timeout - Request timed out at our edge network" OpenAPI Spec.

Since the endpoints function with a VPN but not from your main connection, it's likely a routing or region-specific networking issue outside of OpenRouter's direct control. The /api/v1/models endpoint does not require authentication and should be globally accessible OpenAPI Spec.

For issues like this:

  • I don't have access to real-time status or incident information. Please check the OpenRouter status page or the #announcements channel in Discord for current service status, or ask a mod directly.

If the problem persists only from your New Zealand location and only for these endpoints, please provide:

  • The HTTP status code (if any) returned with the timeout
  • Any specific error code in the response headers

This info will help mods or support investigate possible regional or network-related issues.

-# This is an automated response powered by Answer HQ. Use !mute to stop the bot from responding, or !close when your question is resolved.

tranquil isle
#
curl -v 'https://openrouter.ai/api/v1/models'      
* Host openrouter.ai:443 was resolved.
* IPv6: (none)
* IPv4: 104.18.2.115, 104.18.3.115
*   Trying 104.18.2.115:443...
* Connected to openrouter.ai (104.18.2.115) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=openrouter.ai
*  start date: Feb 24 20:49:23 2026 GMT
*  expire date: May 25 21:49:15 2026 GMT
*  subjectAltName: host "openrouter.ai" matched cert's "openrouter.ai"
*  issuer: C=US; O=Google Trust Services; CN=WE1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://openrouter.ai/api/v1/models
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: openrouter.ai]
* [HTTP/2] [1] [:path: /api/v1/models]
* [HTTP/2] [1] [user-agent: curl/8.7.1]
* [HTTP/2] [1] [accept: */*]
> GET /api/v1/models HTTP/2
> Host: openrouter.ai
> User-Agent: curl/8.7.1
> Accept: */*
> 
* Request completely sent off
< HTTP/2 408 
< date: Fri, 03 Apr 2026 04:48:45 GMT
< content-type: application/json
< access-control-allow-origin: *
< cache-control: private, no-store
< permissions-policy: payment=(self "https://checkout.stripe.com" "https://connect-js.stripe.com" "https://js.stripe.com" "https://*.js.stripe.com" "https://hooks.stripe.com")
< referrer-policy: no-referrer, strict-origin-when-cross-origin
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 9e65711debe374d2-CHC
< 
* Connection #0 to host openrouter.ai left intact
tranquil isle
#

Error seems to have been resolved when querying using auth key, will close in 24 hours if the error doesn't return