# Is it still supported to set a request timeout for request?

**URL:** <https://community.openai.com/t/is-it-still-supported-to-set-a-request-timeout-for-request/1078461>\
**Category:** API\
**Tags:** api\
**Created:** [January 2, 2025, 6:36pm UTC](https://community.openai.com/t/is-it-still-supported-to-set-a-request-timeout-for-request/1078461 "2025-01-02T18:36:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![arata](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/arata/32/523049_2.png) [@arata](https://community.openai.com/u/arata)\
**Post date:** [January 2, 2025, 6:51pm UTC](https://community.openai.com/t/is-it-still-supported-to-set-a-request-timeout-for-request/1078461/3 "2025-01-02T18:51:39Z")

</div>

The `request_timeout` parameter is obsolete. It is from OpenAI SDK libraries before November 2023, which were revamped with an upgrade to “version 1.0.0”.

When using OpenAI SDK “client” methods, you have a `timeout` parameter in seconds that you can set upon instantiation. Python:

```auto
from openai import OpenAI
client = OpenAI(timeout=120)
...

```

A `timeout` used as an API parameter in an OpenAI SDK API call after that is not sent to the API, but rather, overrides that default timeout with the same mechanism being used, but just for that call.

For Python, since the underlying client timeout is being set on the `httpx` library module, you can also use a more granular httpx spec timeout.

The default is ten minutes.

You do not have control over OpenAI’s server-side closing of API connections by their own timeout (if that were to ever happen, like the 15 minute life of a realtime websocket).

---

_[View the full topic](https://community.openai.com/t/is-it-still-supported-to-set-a-request-timeout-for-request/1078461)._
