Skip to main content

Overview

By default, the GBOX SDK connects to the production API at https://gbox.ai/api/v1. You can customize this base URL to connect to different environments or self-hosted instances.

Configuration

Global Configuration

Set the base URL when initializing the SDK:

Environment-Based Configuration

For better flexibility, use environment variables to manage different base URLs:

Environment Variables

Set up your environment variables in a .env file: