ChamberClient
The main class for interacting with the Chamber API.Initialization
https://api.usechamber.io/v1
Auto-Containerize & Run
run()
Auto-containerize and submit a GPU workload in one call. See the full guide for detailed documentation.Requires installation with
pip install chamber-sdk[run]
Returns:
Workload object (or DryRunResult if dry_run=True)
See Auto-Containerize & Run for the complete parameter reference.
Registry Management
Static methods for managing container registries. Configuration is persisted to~/.chamber/config.json.
list_registries()
List all configured registries.dict[str, str] mapping names to URLs
add_registry()
Add or update a named registry.set_default_registry()
Set the default registry by name.ValueError if the registry name doesn’t exist
get_default_registry()
Get the current default registry.tuple[str, str] of (name, url) or None if not configured
Workload Submission
submit_job()
Submit a new GPU workload.
Returns:
Workload object
Distributed Training
For multi-node distributed training:Workload Management
get_workload()
Retrieve details of a specific workload.Workload object
list_workloads()
List workloads with optional filters.
Returns:
PaginatedResponse with items, next_token, total_count
iter_workloads()
Iterate through all workloads with automatic pagination.cancel_workload()
Cancel a running or pending workload.Workload object with updated status
search_workloads()
Search workloads with advanced filtering.
Returns:
WorkloadSearchResult with items, total_count, has_more, next_cursor
get_workload_aggregations()
Get workload counts grouped by a dimension.
Returns:
AggregationResult with dimension, buckets, total
wait_for_completion()
Block until a workload reaches a terminal status.Workload object with final status
Metrics and Statistics
get_workload_metrics()
Retrieve GPU metrics for a specific workload.
Returns:
WorkloadMetrics with gpu_utilization, memory_utilization, temperature, power_usage
get_global_metrics()
Get aggregated metrics for your organization.
Returns:
GlobalMetrics with aggregated data
get_batch_workload_metrics()
Get metrics for multiple workloads at once.get_workload_stats()
Get aggregated workload statistics.WorkloadStats with total, by_status, by_job_class
Teams
list_teams()
List all teams accessible to the current user.Team objects
create_team()
Create a new team.
Returns:
Team object
get_team()
Get details of a specific team.Team object
Templates
list_templates()
List available workload templates.
Returns: List of
Template objects
get_template()
Get details of a specific template.Template object
Allocations
list_allocations()
List capacity allocations for a team.Allocation objects
create_allocation()
Create a new capacity allocation.Allocation object
get_allocation()
Get details of a specific allocation.Allocation object
Capacity
get_capacity()
Check available GPU capacity and budget.health()
Check API health status.Enums
JobStatus
JobClass
ScalingMode
AllocationStatus
Data Models
Workload
Team
Template
Allocation
Exceptions
All exceptions inherit fromChamberError:

