> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gbox.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Timeout

> Configure request timeout settings for optimal performance

## Overview

By default, all requests timeout after 60 seconds. You can customize timeout settings globally or per-request.

## Global Configuration

Set default timeout when initializing the SDK:

<CodeGroup>
  ```typescript Basic Setup theme={null}
  import GboxSDK from "gbox-sdk";

  const gboxSDK = new GboxSDK({
    apiKey: process.env["GBOX_API_KEY"],
    timeout: 30 * 1000, // 30 seconds (default is 60 seconds)
  });
  ```

  ```typescript Longer Timeout theme={null}
  import GboxSDK from "gbox-sdk";

  const gboxSDK = new GboxSDK({
    apiKey: process.env["GBOX_API_KEY"],
    timeout: 2 * 60 * 1000, // 2 minutes for longer operations
  });
  ```
</CodeGroup>

## Per-Request Configuration

Override timeout for specific operations:

<CodeGroup>
  ```typescript Quick Operations theme={null}
  // Short timeout for fast operations like listing
  const boxes = await gboxSDK.listBoxes(
    {},
    { timeout: 10 * 1000 } // 10 seconds
  );
  ```
</CodeGroup>
