Title: wp_ai_client_default_request_timeout
Published: May 20, 2026

---

# apply_filters( ‘wp_ai_client_default_request_timeout’, float $default_timeout )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#wp--skip-link--target)

Filters the default request timeout in seconds for AI Client HTTP requests.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#parameters)󠁿

 `$default_timeout`float

The default timeout in seconds.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#source)󠁿

    ```php
    $filtered_default_timeout = apply_filters( 'wp_ai_client_default_request_timeout', $default_timeout );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ai-client/class-wp-ai-client-prompt-builder.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/ai-client/class-wp-ai-client-prompt-builder.php#L202)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/ai-client/class-wp-ai-client-prompt-builder.php#L202-L202)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_AI_Client_Prompt_Builder::__construct()](https://developer.wordpress.org/reference/classes/wp_ai_client_prompt_builder/__construct/)`wp-includes/ai-client/class-wp-ai-client-prompt-builder.php` |

Constructor.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_ai_client_default_request_timeout/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.0.0](https://developer.wordpress.org/reference/since/7.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_ai_client_default_request_timeout%2F)
before being able to contribute a note or feedback.