Api class serves as the entry point to most functionality.
To train and fine-tune models, use the W&B Python SDK. Use the Public API to query and manage data after you log it to W&B.
Available components
Common use cases
Data export and analysis
- Export run history as DataFrames for analysis in Jupyter notebooks
- Download metrics for custom visualization or reporting
- Aggregate results across multiple experiments
Post-Hoc Updates
- Update run metadata after completion
- Add tags or notes to completed experiments
- Modify run configurations or summaries
Artifact Management
- Query artifacts by version or alias
- Download model checkpoints programmatically
- Track artifact lineage and dependencies
Sweep Analysis
- Access sweep results and best performing runs
- Export hyperparameter search results
- Analyze parameter importance
Authentication
The Public API uses the same authentication mechanism as the Python SDK. You can authenticate in several ways: Use theWANDB_API_KEY environment variable to set your API key:
Api class:
wandb.login() to authenticate the current session: