> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/ajax/nexus-http-client/creating-an-instance.md).

# Creating an Instance

#### Create a Nexus Instance

Start by creating an HTTP client instance using the `nexus.create` method:

```javascript
const client = nexus.create({
  baseURL: 'https://api.example.com',
  headers: {
    'Authorization': 'Bearer <YOUR_TOKEN>',
    'Content-Type': 'application/json',
  },
  cacheEnabled: true, // Enables response caching for GET requests
  retryConfig: { retries: 3, delay: 1000 }, // Retry failed requests
});
```
