Settings
Custom Base URL
Configure custom API endpoints for different environments
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: