# Bread Documentation ## Docs - [Batch Set Bakes](https://docs.bread.com.ai/api-playground/batch-set-bakes.md): Creates multiple bakes. Idempotent: if bake exists with same config, returns existing. If exists with different config, returns 409 Conflict. - [Batch Set Prompts](https://docs.bread.com.ai/api-playground/batch-set-prompts.md): Creates or updates multiple prompts. Idempotent; invalid names return 422. - [Batch Set Targets](https://docs.bread.com.ai/api-playground/batch-set-targets.md): Creates multiple targets. Idempotent: if target exists with same config, returns existing. If exists with different config, returns 409 Conflict. - [Delete Bake](https://docs.bread.com.ai/api-playground/delete-bake.md): Deletes a bake from the repository. - [Delete Target](https://docs.bread.com.ai/api-playground/delete-target.md): Deletes a target from the repository. - [Get Bake](https://docs.bread.com.ai/api-playground/get-bake.md): Get bake definition and metadata. - [Get Bake Download URL](https://docs.bread.com.ai/api-playground/get-bake-download.md): Get presigned URL for downloading model weights. Downloads the latest checkpoint by default, or specify checkpoint number via query parameter. Returns a presigned URL valid for 1 hour (configurable via R2_PRESIGNED_URL_EXPIRY). - [Get Bake Metrics](https://docs.bread.com.ai/api-playground/get-bake-metrics.md): Get training metrics for a bake. Returns all metrics from train_log_metrics.jsonl as a JSON array. Each entry contains metrics like iter, loss, train_loss, lr, etc. Useful for plotting loss curves and other training metrics on the frontend. - [Get Dependency Graph](https://docs.bread.com.ai/api-playground/get-dependency-graph.md): Get the dependency graph for a bake. Returns all resources (bakes, targets, prompts) and their dependencies needed to recreate this bake, including parent bakes and all transitive dependencies. The graph is built using BFS traversal starting from the specified bake. - [Get Prompt](https://docs.bread.com.ai/api-playground/get-prompt.md): Returns the prompt definition and metadata. - [Get Recreation Plan](https://docs.bread.com.ai/api-playground/get-recreation-plan.md): Get the recreation plan for a bake. Returns a step-by-step plan to recreate the bake, including all dependencies. The plan includes all prompts, targets, and bakes needed, in the correct execution order. Parent bake checkpoints are assumed to use the final checkpoint from each bake.… - [Get Repository](https://docs.bread.com.ai/api-playground/get-repo.md): Returns repository configuration and metadata. - [Get Repo Tree](https://docs.bread.com.ai/api-playground/get-repo-tree.md): Get the complete model lineage tree for a repository. Returns all bakes in the repository with their parent-child relationships, status, checkpoints, and full model paths. This provides a complete view of model evolution without requiring a specific starting bake. Unlike de… - [Get Rollout Output](https://docs.bread.com.ai/api-playground/get-rollout-output.md): Get paginated rollout output data. Returns the generated trajectories/responses from the rollout job. Use offset and limit parameters to paginate through large datasets. - [Get Rollout Status](https://docs.bread.com.ai/api-playground/get-rollout-status.md): Get rollout job status. - [Get Stim Output](https://docs.bread.com.ai/api-playground/get-stim-output.md): Get paginated stim output data. - [Get Stim Status](https://docs.bread.com.ai/api-playground/get-stim-status.md): Returns the stim job status. - [Get Target](https://docs.bread.com.ai/api-playground/get-target.md): Get target definition and metadata. - [Health Check](https://docs.bread.com.ai/api-playground/health-check.md): Check API health and status - [List Bakes](https://docs.bread.com.ai/api-playground/list-bakes.md): Lists bakes in the repository for discovery and validation. - [List Prompts](https://docs.bread.com.ai/api-playground/list-prompts.md): Lists prompts in the repository for discovery and validation. - [List Repositories](https://docs.bread.com.ai/api-playground/list-repos.md): Returns repositories visible to the authenticated team. - Default: Returns simple list of repo names (backward compatible) - With metadata: Use ?include_metadata=true to get repos with base_model - Pagination: Use ?include_metadata=true&offset=0&limit=50 for paginated results - [List Targets](https://docs.bread.com.ai/api-playground/list-targets.md): Lists targets in the repository for discovery and validation. - [Run Rollout Job](https://docs.bread.com.ai/api-playground/run-rollout.md): Start a rollout (trajectory generation) job for the specified target. - [Run Stim Job](https://docs.bread.com.ai/api-playground/run-stim.md): Queue a stim (stimulus generation) job for the target. - [Create/Update Bake](https://docs.bread.com.ai/api-playground/set-bake.md): Creates a new bake. Idempotent: if bake exists with same config, returns existing (200). If exists with different config, returns 409 Conflict. - [Create/Update Prompt](https://docs.bread.com.ai/api-playground/set-prompt.md): Creates a new prompt. Idempotent: if prompt exists with same content, returns existing (200). If exists with different content, returns 409 Conflict. - [Create Repository](https://docs.bread.com.ai/api-playground/set-repo.md): Creates a new repository. Idempotent: if repo exists with same base_model, returns existing (200). If exists with different base_model, returns 409 Conflict. - [Create/Update Target](https://docs.bread.com.ai/api-playground/set-target.md): Creates a new target. Idempotent: if target exists with same config, returns existing (200). If exists with different config, returns 409 Conflict. - [Start Bake Job](https://docs.bread.com.ai/api-playground/start-bake.md): Queue a bake (model training) job for the specified bake. - [Bakes (Model Training)](https://docs.bread.com.ai/api-reference/bakes.md): Configure and run model training jobs - [Health Check](https://docs.bread.com.ai/api-reference/health.md): Check API health and status - [Prompts](https://docs.bread.com.ai/api-reference/prompts.md): Prompt template management API reference - [Recipes (Model Lineage)](https://docs.bread.com.ai/api-reference/recipes.md): Get dependency graphs, recreation plans, and model lineage trees - [Repositories](https://docs.bread.com.ai/api-reference/repo.md): Repository management API reference - [Targets](https://docs.bread.com.ai/api-reference/targets.md): Target configuration for stimulus and rollout generation - [Trajectory Generation (Rollout)](https://docs.bread.com.ai/api-reference/targets-rollout.md): Generate model responses to stimuli - [Stimulus Generation (Stim)](https://docs.bread.com.ai/api-reference/targets-stim.md): Generate questions and tasks for model training - [Production Authentication](https://docs.bread.com.ai/authentication.md): Advanced authentication patterns for production deployments - [Bake Configuration](https://docs.bread.com.ai/bgit/configuration/bake-config.md): Complete reference for bake (training) configuration in YAML - [Generator Types](https://docs.bread.com.ai/bgit/configuration/generators.md): Configure different generator types for stimulus generation - [Prompt Configuration](https://docs.bread.com.ai/bgit/configuration/prompts.md): Configure teacher and student prompts, conversation history, and tools - [Target Configuration](https://docs.bread.com.ai/bgit/configuration/target-config.md): Complete reference for target configuration fields in YAML - [Sequential Baking](https://docs.bread.com.ai/bgit/guides/sequential-baking.md): Build models incrementally by chaining bakes together - [bgit Workflows](https://docs.bread.com.ai/bgit/guides/workflows.md): Master iteration, branching, experimentation, and collaboration with bgit - [How bgit Works](https://docs.bread.com.ai/bgit/how-bgit-works.md): Understanding git-based model evolution - [Welcome to Bread](https://docs.bread.com.ai/bgit/index.md): Ship custom AI models as easily as committing code. - [bgit Quickstart](https://docs.bread.com.ai/bgit/quickstart.md): Get bgit installed and bake your first model - [Bread MCP Server](https://docs.bread.com.ai/mcp-server/index.md): Let AI assistants execute bakes on your behalf - [Bake Configuration](https://docs.bread.com.ai/sdk/configuration/bake-config.md): Complete reference for bake (training) configuration - [Generator Types](https://docs.bread.com.ai/sdk/configuration/generators.md): Configure different generator types for stimulus generation - [Target Configuration](https://docs.bread.com.ai/sdk/configuration/target-config.md): Complete reference for target configuration fields - [Type Definitions](https://docs.bread.com.ai/sdk/configuration/types.md): SDK type definitions and data models - [Client Configuration](https://docs.bread.com.ai/sdk/guides/client-configuration.md): Configure timeouts, retries, proxies, and async performance - [Error Handling](https://docs.bread.com.ai/sdk/guides/error-handling.md): Handle errors gracefully in the Bread SDK - [Iterative (Sequential) Baking](https://docs.bread.com.ai/sdk/guides/iterative-baking.md): Refine and improve already-baked models with additional training - [Multi-Target (Parallel) Baking](https://docs.bread.com.ai/sdk/guides/multi-target-baking.md): Bake entire RAG knowledge bases worth of prompts into models. Information the AI just knows without any retrieval needed. - [Pagination](https://docs.bread.com.ai/sdk/guides/pagination.md): Handle large datasets with pagination - [Production Patterns](https://docs.bread.com.ai/sdk/guides/production-patterns.md): Battle-tested patterns for async workflows, error handling, and monitoring - [Model Lineage & Recipes](https://docs.bread.com.ai/sdk/guides/recipes.md): Understand bake dependencies and recreate models using recipe endpoints - [Complete Your First Bake](https://docs.bread.com.ai/sdk/guides/single-prompt-bake.md): Bake Yoda's personality into a model in 4 steps - [Using Your Baked Model](https://docs.bread.com.ai/sdk/guides/using-baked-models.md): Load, chat with, and integrate your baked models in applications - [Introduction](https://docs.bread.com.ai/sdk/index.md): SDK for programmatic AI model baking - [SDK Quickstart](https://docs.bread.com.ai/sdk/quickstart.md): Get started with the Bread SDK - [Understanding Prompt Baking](https://docs.bread.com.ai/understanding-baking.md): Learn what prompt baking is and how it works ## OpenAPI Specs - [openapi_spec](https://docs.bread.com.ai/openapi_spec.yaml) - [openapi](https://docs.bread.com.ai/api-reference/openapi.json) ## Optional - [GitHub](https://github.com/Bread-Technologies/Bread-SDK-Bake-Repo)