Avala constructor.
Configuration options
Your Avala API key. This is required for authentication.If not provided, the SDK will attempt to read the
AVALA_API_KEY environment variable. If neither is available, the constructor will throw an error.The base URL for the Avala API. This is typically used for:
- Testing against a staging environment
- Local development
- Self-hosted Avala instances
- The URL must use HTTPS in production
- HTTP is only allowed for localhost addresses when
AVALA_ALLOW_INSECURE_BASE_URL=trueis set - The SDK will throw an error if these requirements are not met
Request timeout in milliseconds. Requests that take longer than this value will be aborted.The default timeout is 30 seconds (30,000 milliseconds). You may want to increase this for:
- Large file uploads
- Batch operations
- Export generation
- Auto-labeling jobs
Environment variables
The SDK supports the following environment variables:AVALA_API_KEY
Your Avala API key. If not provided in the constructor config, the SDK will read this environment variable.AVALA_ALLOW_INSECURE_BASE_URL
Set totrue, 1, yes, or on to allow HTTP URLs for local development.
Warning: This should only be used for local development. Never use insecure URLs in production.