What is the Bread SDK?
The Bread SDK provides full programmatic access to the baking platform:- Multi-language support: Choose Python or TypeScript based on your stack
- Full control: Access all baking features programmatically
- Async support: Efficient async/await patterns for concurrent operations
- Integration ready: Easy to integrate into existing workflows
Get Started
Understanding Baking
Start here! Learn the four-phase process: Prompt, Stim, Rollout, and Bake.
Quickstart
Install the SDK and run your first bake with step-by-step instructions.
Baking Guides
Step-by-step guides for single prompts, multi-target baking, and iterative workflows.
Configuration
Complete SDK configuration reference for generators, targets, and bakes. Switch between Python and TypeScript examples.
Core Concepts
Repositories
Like GitHub, these repos hold all of a model’s bake data. Create and manage repos programmatically.
Prompts
Define teacher and student prompts that encode behavior into model weights.
Stim Data
Generate synthetic user prompts that the baked model will respond to.
Rollout Jobs
Get expert responses from prompted models to create training datasets.
Targets
Combine stim generators and rollout configuration for a given prompt.
Bakes
Configure and run training jobs that update model weights.
The Baking Workflow
SDK vs bgit
Use the SDK when:- You need programmatic control
- Building automation or integrations
- Working with Python or TypeScript/JavaScript applications
- Need async/concurrent operations
- You prefer a git-based workflow
- Want version control built-in
- Prefer YAML configuration
- Need Git history for model evolution
Related Resources
- bgit Documentation - Git-native interface
- API Reference - REST API documentation
- GitHub Repository - SDK source code